Skip to content

Actually output the trace context in the docker image. - #1884

Open
MikeNeilson wants to merge 1 commit into
developfrom
bugfix/actually-output-the-trace-context
Open

Actually output the trace context in the docker image.#1884
MikeNeilson wants to merge 1 commit into
developfrom
bugfix/actually-output-the-trace-context

Conversation

@MikeNeilson

Copy link
Copy Markdown
Contributor

Summary

While working on HydrologicEngineeringCenter/cwms-python#305, discovered that while we process the traceparent header, we never actually output the trace_id and span_id for viewing and analysis in the logs.

Related Issue

Closes #

Validation

Describe how this was tested.

Checklist

  • AI tools used

@MikeNeilson
MikeNeilson force-pushed the bugfix/actually-output-the-trace-context branch from 6e52fdb to 48a0a20 Compare August 19, 2026 17:59
@MikeNeilson
MikeNeilson force-pushed the bugfix/actually-output-the-trace-context branch from 48a0a20 to 33e266e Compare August 20, 2026 22:23

@oskarhurst oskarhurst left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you changes to Juli might break tomcats logging

<logger name="org.apache" level="ERROR"/>

<logger name="org.apache.catalina" level="INFO" additivity="false">
<appender-ref ref="STDERR" />

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this also be OTEL-STDERR ?

</appender>
</appender>

<appender name="OTEL-STDERR" class="io.opentelemetry.instrumentation.logback.mdc.v1_0.OpenTelemetryAppender">

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct me if I am wrong but isn't OpenTelemetryAppender unshaded so it could never resolve and use the shaded classes provided by juli. Also isn't locgback-juli only run inside of tomcat would would never have any cda trace-ids to begin with so we only need the change in the normal logback file to add the traces ids?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants