Skip to content

Include OpenTelemetry trace and span IDs in manager logs - #3665

Merged
denniskuijs merged 1 commit into
mainfrom
enhancement/logs-trace-id
Dec 4, 2026
Merged

denniskuijs merged 1 commit into
mainfrom
enhancement/logs-trace-id

Conversation

@ebariaux

@ebariaux ebariaux commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Description

Closes #3664.

Append trace_id and span_id to console and file messages when the current OpenTelemetry span is valid, including unsampled spans. Records outside a span keep their existing format. Declare the API dependency in the container module so the formatters also work when the Java agent is disabled.

All 20 container tests passed. Built the manager distribution and verified its API and context JARs. In a Docker smoke test, the IDs in both outputs matched the exported HTTP server span. Repeating the request with tracing disabled produced the original log format.

The companion documentation PR updates the Next tracing guide.

Checklist

  • 1. Acceptance criteria of the linked issue(s) are met
  • 2. Tests are written and all tests pass
  • 3. Changes are manually tested by you and the reviewer
  • 4. Documentation is written or updated

@ebariaux ebariaux added the Enhancement Improvement of an existing feature label Dec 4, 2026
@sonarqubecloud

sonarqubecloud Bot commented Dec 4, 2026

Copy link
Copy Markdown

@ebariaux
ebariaux requested a review from a team December 4, 2026 11:35
@denniskuijs
denniskuijs added this pull request to the merge queue Dec 4, 2026
Merged via the queue into main with commit d89f0d0 Dec 4, 2026
24 checks passed
@denniskuijs
denniskuijs deleted the enhancement/logs-trace-id branch December 4, 2026 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Enhancement Improvement of an existing feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Correlate manager logs with OpenTelemetry traces

2 participants