Skip to content

Conversation

@brettmc
Copy link
Contributor

@brettmc brettmc commented Oct 19, 2025

@brettmc brettmc changed the title Decl config 1.0rc2 update declarative config to 1.0-rc.2 Oct 19, 2025
@codecov
Copy link

codecov bot commented Oct 19, 2025

Codecov Report

❌ Patch coverage is 12.50000% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 68.36%. Comparing base (d5f5aa7) to head (5a30677).

Files with missing lines Patch % Lines
.../Config/SDK/ComponentProvider/Detector/Service.php 0.00% 4 Missing ⚠️
.../Config/SDK/ComponentProvider/OpenTelemetrySdk.php 0.00% 3 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##               main    #1733      +/-   ##
============================================
+ Coverage     68.26%   68.36%   +0.09%     
- Complexity     2970     2972       +2     
============================================
  Files           448      449       +1     
  Lines          9029     9035       +6     
============================================
+ Hits           6164     6177      +13     
+ Misses         2865     2858       -7     
Flag Coverage Δ
8.1 68.14% <12.50%> (?)
8.2 68.29% <12.50%> (?)
8.3 68.23% <12.50%> (?)
8.4 68.30% <12.50%> (?)
8.5 68.29% <12.50%> (+0.02%) ⬆️

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

Files with missing lines Coverage Δ
...Strategy/SemanticConventionSuppressionStrategy.php 100.00% <100.00%> (ø)
src/SDK/Trace/TracerProvider.php 100.00% <ø> (ø)
.../Config/SDK/ComponentProvider/OpenTelemetrySdk.php 0.00% <0.00%> (ø)
.../Config/SDK/ComponentProvider/Detector/Service.php 0.00% <0.00%> (ø)

... and 8 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d5f5aa7...5a30677. Read the comment docs.

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

@brettmc brettmc marked this pull request as ready for review October 28, 2025 09:38
@brettmc brettmc requested a review from a team as a code owner October 28, 2025 09:38
->end()
->end()
->end()
->scalarNode('translation_strategy')->defaultValue('UnderscoreEscapingWithSuffixes')->end()
Copy link
Contributor

Choose a reason for hiding this comment

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

Should remove without_units and without_type_suffix as these two options were replaced by translation_strategy.

Iff we want to be explicit about the allowed values:

Suggested change
->scalarNode('translation_strategy')->defaultValue('UnderscoreEscapingWithSuffixes')->end()
->enumNode('translation_strategy')
->defaultValue('UnderscoreEscapingWithSuffixes')
->values([
'UnderscoreEscapingWithSuffixes',
'UnderscoreEscapingWithoutSuffixes',
'NoUTF8EscapingWithSuffixes',
'NoTranslation',
])
->end()

Comment on lines -560 to -571
# Configure response propagators.
# If omitted, a noop response propagator is used.
response_propagator/development:
# Configure the experimental response propagators in the composite experimental response propagator. Entries from .composite_list are appended to the list here with duplicates filtered out.
# Built-in experimental response propagator keys include: N/A. Known third party keys include: servertiming, traceresponse.
# If the resolved list of experimental response propagators (from .composite and .composite_list) is empty, a noop response propagator is used.
composite:
# Configure the experimental response propagators in the composite experimental response propagator. Entries are appended to .composite with duplicates filtered out.
# The value is a comma separated list of experimental response propagator identifiers matching the format of OTEL_EXPERIMENTAL_RESPONSE_PROPAGATORS. See https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/configuration/sdk-environment-variables.md#general-sdk-configuration for details.
# Built-in experimental propagator identifiers include: N/A. Known third party identifiers include: servertiming, traceresponse.
# If the resolved list of experimental propagators (from .composite and .composite_list) is empty, a noop response propagator is used.
composite_list: "servertiming,traceresponse"
Copy link
Contributor

Choose a reason for hiding this comment

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

Might want to undo this change as this is a PHP-specific node.

->addDefaultsIfNotSet()
->children()
->booleanNode('disabled')->isRequired()->end()
->booleanNode('disabled')->end()
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we add a test with

tracer_provider:
    tracer_configurator/development:
        tracers:
            - name: test
              config:

->addDefaultsIfNotSet()
->children()
->booleanNode('disabled')->isRequired()->end()
->booleanNode('disabled')->end()
Copy link
Contributor

Choose a reason for hiding this comment

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

Should also remove ->isRequired() from the default_config node.

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.

2 participants