Skip to content

Update to opentelemetry-configuration v1.1.0#8451

Merged
jack-berg merged 8 commits into
open-telemetry:mainfrom
jack-berg:declarative-config-1.1
Jun 22, 2026
Merged

Update to opentelemetry-configuration v1.1.0#8451
jack-berg merged 8 commits into
open-telemetry:mainfrom
jack-berg:declarative-config-1.1

Conversation

@jack-berg

@jack-berg jack-berg commented Jun 4, 2026

Copy link
Copy Markdown
Member

@codecov

codecov Bot commented Jun 4, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 27.09360% with 148 lines in your changes missing coverage. Please review.
✅ Project coverage is 78.51%. Comparing base (598ce87) to head (a062700).

Files with missing lines Patch % Lines
...gure/declarativeconfig/model/IdGeneratorModel.java 25.00% 30 Missing ⚠️
...larativeconfig/model/IdGeneratorPropertyModel.java 22.58% 24 Missing ⚠️
...del/ExperimentalPrometheusMetricExporterModel.java 25.00% 18 Missing ⚠️
...EventToSpanEventBridgeLogRecordProcessorModel.java 5.55% 17 Missing ⚠️
...arativeconfig/model/PeriodicMetricReaderModel.java 15.00% 17 Missing ⚠️
...eclarativeconfig/model/RandomIdGeneratorModel.java 5.55% 17 Missing ⚠️
...clarativeconfig/model/LogRecordProcessorModel.java 16.66% 15 Missing ⚠️
...e/declarativeconfig/model/TracerProviderModel.java 9.09% 7 Missing and 3 partials ⚠️

❌ Your patch check has failed because the patch coverage (27.09%) is below the target coverage (80.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #8451      +/-   ##
============================================
- Coverage     78.76%   78.51%   -0.26%     
- Complexity     8579     8601      +22     
============================================
  Files          1009     1013       +4     
  Lines         28993    29148     +155     
  Branches       3599     3631      +32     
============================================
+ Hits          22836    22885      +49     
- Misses         5312     5420     +108     
+ Partials        845      843       -2     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

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

@jack-berg jack-berg changed the title Update to opentelemetry-configuration latest ref Update to opentelemetry-configuration v1.1.0 Jun 5, 2026
@jack-berg
jack-berg marked this pull request as ready for review June 5, 2026 17:16
@jack-berg
jack-berg requested a review from a team as a code owner June 5, 2026 17:16
/** Reflectively set the max export batch size for the {@link SdkMeterProviderBuilder}. */
public static SdkMeterProviderBuilder setMaxExportBatchSize(
SdkMeterProviderBuilder sdkMeterProviderBuilder, int maxExportBatchSize) {
public static PeriodicMetricReaderBuilder setMaxExportBatchSize(

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This was wrong. Had to fix to add support for the new declarative config property for configuring batch size.


@Override
public String getName() {
return "event_to_span_event_bridge/development";

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Now that event_to_span_event_bridge is formally supported in declarative config, we can directly reference instance of using SPI.

* The attribute value. The type of value must match .type. Property is required and must be
* non-null.
* The attribute value. The type of value must match .type. Property must be present, but if null
* the entry is ignored.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

With POJOs checked into VCS now, its cool /useful to see these diffs as we update to the new version of the schema

@JsonPropertyOrder({})
@Generated("jsonschema2pojo")
@SuppressWarnings({"NullAway", "rawtypes", "BoxedPrimitiveEquality"})
public class ExperimentalEventToSpanEventBridgeLogRecordProcessorModel {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

there's no content in this guy? Just an empty class for now?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yup - some types don't have any configurable properties. Things like AlwayOnSampler, AlwaysOffSampler, ConsoleExporter. Specifying their key is enough to opt in, and if they ever gain configurable properties they'll be added to the type. Example:

file_format: "1.1"
tracer_provider:
  processors:
    event_to_span_event_bridge/development:
    batch:
      exporter:
        otlp_http:
          endpoint: http://localhost:4318/v1/spans
  sampler:
    always_on:

@jkwatson jkwatson left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

👍🏽

@jack-berg
jack-berg merged commit 8d01d31 into open-telemetry:main Jun 22, 2026
27 of 28 checks passed
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