opentelemetry-java icon indicating copy to clipboard operation
opentelemetry-java copied to clipboard

Allow frameworks to add instrumentation scope conditions

Open brunobat opened this issue 8 months ago • 9 comments

I know the feature is internal, but it's there for 1y now and should be mature enough to be used.

brunobat avatar Apr 30 '25 11:04 brunobat

@brunobat is there any corresponding incubating or internal API that needs to be deprecated (or was this never exposed at all)?

is test coverage already complete for the feature?

(also, it looks like you need to run ./gradlew jApiCmp)

trask avatar Apr 30 '25 14:04 trask

Moved to draft. There are some tests but I'm not sure they are thorough. If this can move forward I also need to:

  • change javadoc
  • delete util classes that allow config by reflection.
  • do more tests

brunobat avatar Apr 30 '25 14:04 brunobat

thanks, I support stabilizing this feature

trask avatar Apr 30 '25 14:04 trask

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 90.03%. Comparing base (3ef4be2) to head (87c2ba0). Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #7312   +/-   ##
=========================================
  Coverage     90.03%   90.03%           
  Complexity     6915     6915           
=========================================
  Files           787      787           
  Lines         20864    20864           
  Branches       2023     2023           
=========================================
  Hits          18784    18784           
  Misses         1441     1441           
  Partials        639      639           

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

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

codecov[bot] avatar Apr 30 '25 14:04 codecov[bot]

Stabilizing this is blocked by the spec. This feature is still "in development" at the spec level: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/sdk.md#tracerconfigurator

jack-berg avatar Apr 30 '25 14:04 jack-berg

@brunobat is there any corresponding incubating or internal API that needs to be deprecated (or was this never exposed at all)?

These are available for experimental use via Sdk{Signal}ProviderUtil, e.g. https://github.com/open-telemetry/opentelemetry-java/blob/main/sdk/trace/src/main/java/io/opentelemetry/sdk/trace/internal/SdkTracerProviderUtil.java#L43-L74

jack-berg avatar Apr 30 '25 14:04 jack-berg

Stabilizing this is blocked by the spec. This feature is still "in development" at the spec level: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/sdk.md#tracerconfigurator

thanks, I got mixed up thinking this was about stabilizing instrumentation scope attributes 🙈

trask avatar Apr 30 '25 16:04 trask

@jack-berg, I guess I need to ask in the spec meeting about the status of the feature you mention.

brunobat avatar Apr 30 '25 18:04 brunobat

@brunobat go ahead and open a spec issue about stabilizing it, e.g. https://github.com/open-telemetry/opentelemetry-specification/issues?q=is%3Aissue%20state%3Aclosed%20stabilize%20in%3Atitle

trask avatar May 01 '25 01:05 trask