mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
chore(fluent-ingest): normalize formatting in FluentLogsIngestService and Index.ts
This commit is contained in:
@@ -71,7 +71,6 @@ const init: PromiseVoidFunction = async (): Promise<void> => {
|
||||
await Realtime.init();
|
||||
// add default routes
|
||||
await App.addDefaultRoutes();
|
||||
|
||||
} catch (err) {
|
||||
logger.error("App Init Failed:");
|
||||
logger.error(err);
|
||||
|
||||
@@ -105,12 +105,11 @@ export default class FluentLogsIngestService extends OtelIngestBaseService {
|
||||
dataRententionInDays: metadata.dataRententionInDays,
|
||||
} satisfies TelemetryServiceMetadata;
|
||||
|
||||
const baseAttributes: Dictionary<
|
||||
AttributeType | Array<AttributeType>
|
||||
> = TelemetryUtil.getAttributesForServiceIdAndServiceName({
|
||||
serviceId: serviceMetadata.serviceId,
|
||||
serviceName,
|
||||
});
|
||||
const baseAttributes: Dictionary<AttributeType | Array<AttributeType>> =
|
||||
TelemetryUtil.getAttributesForServiceIdAndServiceName({
|
||||
serviceId: serviceMetadata.serviceId,
|
||||
serviceName,
|
||||
});
|
||||
|
||||
const baseAttributeKeys: Array<string> =
|
||||
TelemetryUtil.getAttributeKeys(baseAttributes);
|
||||
@@ -151,9 +150,7 @@ export default class FluentLogsIngestService extends OtelIngestBaseService {
|
||||
dbLogs.push(logRow);
|
||||
processed++;
|
||||
|
||||
if (
|
||||
dbLogs.length >= OPEN_TELEMETRY_INGEST_LOG_FLUSH_BATCH_SIZE
|
||||
) {
|
||||
if (dbLogs.length >= OPEN_TELEMETRY_INGEST_LOG_FLUSH_BATCH_SIZE) {
|
||||
await this.flushLogsBuffer(dbLogs);
|
||||
}
|
||||
} catch (processingError) {
|
||||
|
||||
Reference in New Issue
Block a user