Skip to content

Commit

Permalink
fixed Timestamp not being set for otel log signals
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris18230 authored and gsmet committed Nov 14, 2024
1 parent 7eeb9dd commit 64dfad0
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 64dfad0

Please sign in to comment.