Skip to content

Conversation

sandhose
Copy link
Member

@sandhose sandhose commented Oct 9, 2025

Fixes #5124

This always initialises the OTEL tracing layer. This has the advantage of getting context propagation through MAS to work even though we don't export the traces.

In theory this would also mean that we always get a trace ID, but that would add it to the logs all the time. So I tweaked the IdGenerator to return an invalid trace in case we have no exporter, which means:

  • we still get the trace ID from the parent if there is some
  • we don't log any trace ID if there was no parent trace

Copy link

cloudflare-workers-and-pages bot commented Oct 9, 2025

Deploying matrix-authentication-service-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: f0ac252
Status: ✅  Deploy successful!
Preview URL: https://04866eaf.matrix-authentication-service-docs.pages.dev
Branch Preview URL: https://quenting-always-init-otel.matrix-authentication-service-docs.pages.dev

View logs

@sandhose sandhose force-pushed the quenting/always-init-otel branch from 7620b3e to f0ac252 Compare October 9, 2025 14:28
@sandhose sandhose requested a review from reivilibre October 9, 2025 14:28
@sandhose sandhose merged commit 429e368 into release/v1.4 Oct 9, 2025
15 checks passed
@sandhose sandhose deleted the quenting/always-init-otel branch October 9, 2025 15:49
@sandhose sandhose added the T-Defect Something isn't working label Oct 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T-Defect Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants