Skip to content

Omit tracing metadata outside recording spans - #425

Merged
lesnik512 merged 1 commit into
mainfrom
fix/396-omit-empty-tracing
Nov 4, 2026
Merged

lesnik512 merged 1 commit into
mainfrom
fix/396-omit-empty-tracing

Conversation

@lesnik512

Copy link
Copy Markdown
Member

Closes #396.

JSON logs emitted outside a recording OpenTelemetry span now omit the empty tracing object. Logs inside a recording span include span_id and trace_id. The processor stays registered so spans created outside lite-bootstrap can supply trace context.

Breaking changes

Log parsers must treat tracing as optional. The 2.x migration guide documents the change.

Verification

The rendered JSON regression failed before the fix and passed afterward. just lint-ci, just test-ci (636 tests, 100% coverage), and just docs-build passed. Standards and spec reviews found no implementation issues. The optional processor optimization was not benchmarked.

@lesnik512
lesnik512 merged commit 34adcfc into main Nov 4, 2026
35 checks passed
@lesnik512
lesnik512 deleted the fix/396-omit-empty-tracing branch November 4, 2026 09:13
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.

Leave the tracing key out of log lines logged outside a recording span

1 participant