Skip to content

Restore API doctest coverage without SDK dependencies #3786

Open

Description

@cijothomas

Follow-up to #3618.

That PR fixes reduced-feature testing by disabling SDK defaults on the opentelemetry dev-dependency. As a practical tradeoff, it marks three SDK-dependent examples as ignore:

  • LoggerProvider::logger_with_scope
  • MeterProvider::meter_with_scope
  • TextMapCompositePropagator

Let’s explore making these API examples independent of the SDK so we can restore doctest coverage without enabling extra features through feature unification. Keep the examples useful, verify them with the relevant feature combinations, and remove the SDK dev-dependency if it is no longer needed.

Activity

  1. darkraider01 commented on Oct 11, 2026

    @darkraider01
    Member

    I looked into this a bit and tried a few approaches locally. Looks like we can use the existing no-op providers for the logger and meter examples.

    For the composite propagator, using two no-op propagators doesn't really demonstrate much, so I tried a small custom one that actually injects headers, which seems to work.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions