Skip to content

Deprecate JaegerPropagator in OpenTelemetry.Extensions.Propagators#6819

Merged
rajkumar-rangaraj merged 9 commits intoopen-telemetry:mainfrom
neeraj542:deprecate-jaeger-propagator
Jan 15, 2026
Merged

Deprecate JaegerPropagator in OpenTelemetry.Extensions.Propagators#6819
rajkumar-rangaraj merged 9 commits intoopen-telemetry:mainfrom
neeraj542:deprecate-jaeger-propagator

Conversation

@neeraj542
Copy link
Copy Markdown
Contributor

Description

This PR deprecates the JaegerPropagator class and all its public members in the OpenTelemetry.Extensions.Propagators package, following the OpenTelemetry specification change (opentelemetry-specification#4827) and Jaeger's migration guide.

Changes

  • Added [Obsolete] attributes to JaegerPropagator class
  • Added [Obsolete] attributes to all public members (Fields, Extract, Inject)
  • Updated README.md with deprecation notice and migration guidance
  • Added #pragma warning disable CS0809 to handle obsolete member overrides

Related Issues

Fixes #6814

Migration Path

Users should migrate to TraceContextPropagator from the OpenTelemetry package instead. See:

Testing

  • ✅ Build succeeds for all target frameworks
  • ✅ All tests pass (54/54 on net10.0)
  • ✅ Obsolete warnings appear correctly when using JaegerPropagator
  • ✅ Markdown linting passes
  • ✅ No PublicAPI file changes needed (only adding attributes, not changing signatures)

Screenshot:

Screenshot 2026-01-12 at 9 42 06 PM

- Add [Obsolete] attributes to JaegerPropagator class and all public members
- Update README.md with deprecation notice and migration guidance
- Follows OpenTelemetry specification change (opentelemetry-specification#4827)

Fixes
@neeraj542 neeraj542 requested a review from a team as a code owner January 12, 2026 16:13
@github-actions github-actions bot added the pkg:OpenTelemetry.Extensions.Propagators Issues related to OpenTelemetry.Extensions.Propagators NuGet package label Jan 12, 2026
@neeraj542
Copy link
Copy Markdown
Contributor Author

Hi @Kielek,

I've implemented the deprecation of JaegerPropagator per #6814. The changes include:

  • Added [Obsolete] attributes to the class and all public members
  • Updated README.md with deprecation notice
  • Fixed formatting (formatter also added [Obsolete] to test methods)

I have a few questions:

  1. Is adding [Obsolete] to test methods the right approach, or should we suppress warnings differently?
  2. Are the deprecation messages appropriate?
  3. Should I wait for all CI checks to complete, or address specific issues now?

This is my first contribution here, so I'd appreciate any feedback or guidance. Happy to make adjustments as needed!

Thanks!

Comment thread src/OpenTelemetry.Extensions.Propagators/README.md Outdated
@neeraj542
Copy link
Copy Markdown
Contributor Author

I've done this [!NOTE] syntax change. Thanks, @martincostello!

@neeraj542
Copy link
Copy Markdown
Contributor Author

the PR is now updated and ready for your review. Please let me know if there's anything else that needs to be adjusted.

@martincostello
Copy link
Copy Markdown
Member

There's a bunch of compiler errors that need addressing.

@neeraj542
Copy link
Copy Markdown
Contributor Author

@martincostello I've fixed the compiler errors. CI completed but shows 35 failing checks. I'm reviewing the error messages to see if they're related to my changes or infrastructure issues.

Could you help clarify which failures (if any) are related to the deprecation changes? I want to make sure I address the right issues. Thanks!

@martincostello
Copy link
Copy Markdown
Member

They're all related to the changes you've made.

@neeraj542
Copy link
Copy Markdown
Contributor Author

They're all related to the changes you've made.

I'm reviewing the error logs now. I'll fix all issues related to my changes. Should I focus on any particular checks first (markdown linting, sanity check, build errors, etc.)?

@martincostello
Copy link
Copy Markdown
Member

The order doesn't really matter. They'd all have to be resolved for merge.

@neeraj542
Copy link
Copy Markdown
Contributor Author

I'm having trouble seeing the specific error messages from the failing CI checks. The build is clean locally (0 warnings/errors in Release, all 54 tests pass on net10.0), but CI shows 35 failing checks.

Could you help me understand:

  1. What are the specific error messages I should be looking at?
  2. Are there particular failing checks I should focus on first?
  3. Is there a way to see the detailed test failure output in CI?

I want to fix all the issues but need to see the actual errors to address them. Thanks for your help! @martincostello

@martincostello
Copy link
Copy Markdown
Member

@martincostello
Copy link
Copy Markdown
Member

Also note that in CI all warnings as treated as errors, so if you have any warnings in your build locally, those also need to be fixed.

@Kielek
Copy link
Copy Markdown
Member

Kielek commented Jan 15, 2026

Also note that in CI all warnings as treated as errors, so if you have any warnings in your build locally, those also need to be fixed.

The bare minimum local check is to execute solution build in the Release mode. If it fails locally, it will fail also in the CI.

@codecov
Copy link
Copy Markdown

codecov bot commented Jan 15, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.99%. Comparing base (518fcf1) to head (059c893).
⚠️ Report is 13 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #6819      +/-   ##
==========================================
+ Coverage   86.91%   86.99%   +0.08%     
==========================================
  Files         262      263       +1     
  Lines       12355    12490     +135     
==========================================
+ Hits        10738    10866     +128     
- Misses       1617     1624       +7     
Flag Coverage Δ
unittests-Project-Experimental 86.54% <ø> (-0.25%) ⬇️
unittests-Project-Stable 86.56% <ø> (-0.29%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
...lemetry.Extensions.Propagators/JaegerPropagator.cs 94.02% <ø> (ø)

... and 6 files with indirect coverage changes

@neeraj542
Copy link
Copy Markdown
Contributor Author

neeraj542 commented Jan 15, 2026

All CI checks have passed now..

Fixed the CS0809 error by adding pragma warnings around the Fields property, and removed the trailing space in README.md. All 46 checks are now passing, including build tests, package validation, and AOT compatibility tests.

The PR is ready for review. Thanks!

cc: @martincostello @Kielek

Copy link
Copy Markdown
Member

@Kielek Kielek left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks.

Note for myseld/other approvers: Jaeger propagator was never part of OpenTelemetry.Context.Propagation namespace. It was implemented only in this package.

Comment thread src/OpenTelemetry.Extensions.Propagators/JaegerPropagator.cs Outdated
@neeraj542
Copy link
Copy Markdown
Contributor Author

Thanks for the review and approval.. If everything looks good here, could you please merge this PR?

cc: @martincostello , @Kielek

@rajkumar-rangaraj
Copy link
Copy Markdown
Member

@Kielek Merging is blocked due to validation failure. Have you seen this earlier?

image

@rajkumar-rangaraj rajkumar-rangaraj added this pull request to the merge queue Jan 15, 2026
@rajkumar-rangaraj
Copy link
Copy Markdown
Member

@Kielek Merging is blocked due to validation failure. Have you seen this earlier?

image

Nevermind, it took few minutes to show merge button.

Merged via the queue into open-telemetry:main with commit fe0a124 Jan 15, 2026
52 checks passed
@neeraj542
Copy link
Copy Markdown
Contributor Author

Thanks for the review and merge! Appreciate it 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pkg:OpenTelemetry.Extensions.Propagators Issues related to OpenTelemetry.Extensions.Propagators NuGet package ready to merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deprecate Jaeger propagator

5 participants