Skip to content

Attach trace and span id to error reports#77

Merged
rubenvanassche merged 1 commit into
mainfrom
feat/error-trace-correlation
May 28, 2026
Merged

Attach trace and span id to error reports#77
rubenvanassche merged 1 commit into
mainfrom
feat/error-trace-correlation

Conversation

@rubenvanassche

Copy link
Copy Markdown
Member

Summary

Error reports built by ReportFactory::toArray() now include traceId and spanId at the top level, pulled unconditionally from the current Tracer (same approach Logger.php already uses for logs).

Lets the backend correlate a captured exception with the trace it occurred in. Previously the only link between errors and traces was the embedded events array (spans attached to the report), which doesn't help when an error is sent on its own.

@rubenvanassche rubenvanassche merged commit 7d2a62c into main May 28, 2026
9 of 36 checks passed
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.

1 participant