Skip to content

Replace Opentelemetry root with current to reuse existing trace. - #4002

Open
froque wants to merge 1 commit into
jooby-project:mainfrom
froque:4001_fix_opentelemetry_parent_context
Open

Replace Opentelemetry root with current to reuse existing trace.#4002
froque wants to merge 1 commit into
jooby-project:mainfrom
froque:4001_fix_opentelemetry_parent_context

Conversation

@froque

@froque froque commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Unit test shouldExtractFromHeadersAndCacheResultWhenNotAlreadyCached is not updated due to current() calling into root() internally.

Fixes #4001

Unit test shouldExtractFromHeadersAndCacheResultWhenNotAlreadyCached is
not updated due to current() calling into root() internally.
@codecov

codecov Bot commented Sep 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.18%. Comparing base (911eb1d) to head (aa78f93).

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #4002   +/-   ##
=========================================
  Coverage     94.17%   94.18%           
+ Complexity     6655     6654    -1     
=========================================
  Files           432      432           
  Lines         20893    20893           
  Branches       2096     2096           
=========================================
+ Hits          19677    19678    +1     
+ Misses          763      759    -4     
- Partials        453      456    +3     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

OtelHttpTracing is not using the same trace as Jetty or Undertow

1 participant