Skip to content

Commit 080a358

Browse files
Capture all marker attributes in structured args
This commit mirrors this recent change in OpenTelemetry Java instrumentation of Logback : open-telemetry/opentelemetry-java-instrumentation#15341
1 parent 792bab3 commit 080a358

File tree

1 file changed

+1
-3
lines changed
  • clj-otel-adapter-logback/src/steffan_westcott/clj_otel/adapter

1 file changed

+1
-3
lines changed

clj-otel-adapter-logback/src/steffan_westcott/clj_otel/adapter/logback.clj

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -233,9 +233,7 @@
233233

234234
(and supports-logstash-StructuredArgument?
235235
(.-captureLogstashStructuredArguments appender))
236-
(util/into! (comp (filter instance-SingleFieldAppendingMarker?)
237-
(keep logstash-single-field-attr))
238-
(.getArgumentArray event))))
236+
(util/into! (logstash-marker-attrs (.getArgumentArray event)))))
239237

240238
event-name (when (.-captureEventName appender)
241239
(get attributes "event.name"))

0 commit comments

Comments
 (0)