From 64dfad0ba32c10e0975bd877a3f4bff9783a5362 Mon Sep 17 00:00:00 2001 From: Christian Ivanov Date: Thu, 14 Nov 2024 13:29:20 +0100 Subject: [PATCH] fixed Timestamp not being set for otel log signals --- .../opentelemetry/runtime/logs/OpenTelemetryLogHandler.java | 1 + 1 file changed, 1 insertion(+) diff --git a/extensions/opentelemetry/runtime/src/main/java/io/quarkus/opentelemetry/runtime/logs/OpenTelemetryLogHandler.java b/extensions/opentelemetry/runtime/src/main/java/io/quarkus/opentelemetry/runtime/logs/OpenTelemetryLogHandler.java index de673ab9c77db9..cd989f1680344f 100644 --- a/extensions/opentelemetry/runtime/src/main/java/io/quarkus/opentelemetry/runtime/logs/OpenTelemetryLogHandler.java +++ b/extensions/opentelemetry/runtime/src/main/java/io/quarkus/opentelemetry/runtime/logs/OpenTelemetryLogHandler.java @@ -43,6 +43,7 @@ public void publish(LogRecord record) { final LogRecordBuilder logRecordBuilder = openTelemetry.getLogsBridge() .loggerBuilder(INSTRUMENTATION_NAME) .build().logRecordBuilder() + .setTimestamp(record.getInstant()) .setObservedTimestamp(record.getInstant()); if (record.getLevel() != null) {