Skip to content

Conversation

@sandhose
Copy link
Member

@sandhose sandhose commented Nov 7, 2025

This would happen when the info log level is suppressed (e.g. RUST_LOG=warn), and therefore the request span would not be enabled and fail to set the parent OTEL context.

I've put the fix against the release branch to avoid having to wait for another release cycle if that's alright

This would happen when the `info` log level is surpressed, and therefore
the request span would not be enabled and fail to set the parent OTEL
context.
@sandhose sandhose requested a review from a team as a code owner November 7, 2025 10:36
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Nov 7, 2025

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

Latest commit: eeb5d61
Status:🚫  Build failed.

View logs

@sandhose sandhose changed the base branch from main to release/v1.6 November 7, 2025 10:36
@sandhose sandhose requested a review from Copilot November 7, 2025 12:55
@sandhose sandhose added the T-Defect Something isn't working label Nov 7, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds a guard to prevent setting parent context on disabled tracing spans, which previously caused errors when certain log levels were configured (e.g., RUST_LOG=warn).

Key Changes:

  • Added is_disabled() check before extracting and setting parent span context
  • Added explanatory comment about why this guard is necessary

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@sandhose sandhose merged commit 85fbc06 into release/v1.6 Nov 7, 2025
28 of 29 checks passed
@sandhose sandhose deleted the quenting/fix-set-parent branch November 7, 2025 12:57
@element-hq element-hq deleted a comment from Copilot AI Nov 7, 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.

3 participants