Skip to content

opentelemetry-sdk: Implement tracer configurator#4861

Merged
xrmx merged 27 commits intoopen-telemetry:mainfrom
xrmx:experimental-tracer-configurator
Feb 12, 2026
Merged

opentelemetry-sdk: Implement tracer configurator#4861
xrmx merged 27 commits intoopen-telemetry:mainfrom
xrmx:experimental-tracer-configurator

Conversation

@xrmx
Copy link
Contributor

@xrmx xrmx commented Dec 17, 2025

Description

Implement part of the tracing SDK spec to configure the tracers https://opentelemetry.io/docs/specs/otel/trace/sdk/#configuration

At the moment this adds helper in order to enable or disable a tracer after it has been created.

The spec in is development so attributes, helpers and classes are prefixed with underscore.

TODO:

  • hook into sdk configuration
  • add an example rule based configurator so that we can express the tracer filter by name there

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • tox

Does This PR Require a Contrib Repo Change?

  • Yes. - Link to PR:
  • No.

Checklist:

  • Followed the style guidelines of this project
  • Changelogs have been updated
  • Unit tests have been added
  • Documentation has been updated

@xrmx xrmx requested a review from a team as a code owner December 17, 2025 11:40
@xrmx xrmx moved this to Ready for review in @xrmx's Python PR digest Dec 24, 2025
@xrmx xrmx force-pushed the experimental-tracer-configurator branch from b0e8ccb to 9726fec Compare January 22, 2026 10:08
xrmx added 3 commits February 6, 2026 09:46
So instead of caching it when the TracerConfigurator changes calculate
it when we need to check if the tracer is enabled. This simplify the
code quite a bit and hopefully people will use fast tracer configurator.
@xrmx xrmx requested a review from aabmass February 10, 2026 20:32
@xrmx xrmx added the Approve Public API check This label shows that the public symbols added or changed in a PR are strictly necessary label Feb 12, 2026
@xrmx xrmx moved this from Ready for review to Approved PRs in @xrmx's Python PR digest Feb 12, 2026
@xrmx xrmx merged commit 681384e into open-telemetry:main Feb 12, 2026
447 checks passed
@github-project-automation github-project-automation bot moved this from Approved PRs to Done in @xrmx's Python PR digest Feb 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Approve Public API check This label shows that the public symbols added or changed in a PR are strictly necessary

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

6 participants