Skip to content

Conversation

@mariomac
Copy link
Contributor

@mariomac mariomac commented Nov 27, 2025

In preparation:

  • Create a base metrics global configuration. This structure will be reused for per-service configuration.
  • Move otel_metric_export > features to a common metrics > features, and deprecate it
  • Move prometheus > features to metrics > features, and deprecate it
  • Handle new configuration from integration tests
  • Update documentation --> Will submit a pr to opentelemetry.io docs as soon as the new property is accepted/agreed.

The reason to move the features specification to a common section is because in the next PRs, we will allow a declarative per-service metric features definition. Having different metric features per export endpoint adds a lot of complexity to the code.

@codecov
Copy link

codecov bot commented Nov 27, 2025

Codecov Report

❌ Patch coverage is 65.69767% with 59 lines in your changes missing coverage. Please review.
✅ Project coverage is 56.27%. Comparing base (16f6215) to head (9e87f12).

Files with missing lines Patch % Lines
pkg/export/prom/prom.go 17.14% 22 Missing and 7 partials ⚠️
pkg/instrumenter/instrumenter_test_linux.go 0.00% 7 Missing ⚠️
pkg/export/otel/metrics.go 73.91% 0 Missing and 6 partials ⚠️
pkg/export/prom/prom_bpf.go 50.00% 5 Missing ⚠️
pkg/internal/otelsdk/sdk_inject.go 16.66% 5 Missing ⚠️
pkg/obi/config.go 86.36% 0 Missing and 3 partials ⚠️
pkg/export/feature.go 95.12% 2 Missing ⚠️
pkg/export/prom/prom_net.go 66.66% 0 Missing and 1 partial ⚠️
pkg/instrumenter/instrumenter.go 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #943      +/-   ##
==========================================
+ Coverage   55.83%   56.27%   +0.44%     
==========================================
  Files         255      255              
  Lines       22177    22180       +3     
==========================================
+ Hits        12382    12482     +100     
+ Misses       8956     8852     -104     
- Partials      839      846       +7     
Flag Coverage Δ
integration-test 22.90% <40.69%> (+0.04%) ⬆️
integration-test-arm 0.00% <0.00%> (?)
integration-test-vm-${ARCH}-${KERNEL_VERSION} 0.00% <0.00%> (ø)
k8s-integration-test 2.67% <0.00%> (-0.02%) ⬇️
oats-test 0.00% <0.00%> (ø)
unittests 47.66% <64.53%> (+0.45%) ⬆️

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

☔ View full report in Codecov by Sentry.
📢 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@mariomac mariomac marked this pull request as ready for review November 28, 2025 10:45
@mariomac mariomac requested a review from a team as a code owner November 28, 2025 10:45
otel_traces_export:
endpoint: http://jaeger:4318
meter_provider:
obi_features:
Copy link
Contributor

Choose a reason for hiding this comment

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

why do we call them obi_features, instead of features?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

With the new changes, this is already: metrics > features

@mariomac mariomac changed the title Create placeholder for meter_provider declarative configuration Create placeholder for metrics common configuration Dec 4, 2025
Copy link
Contributor

@grcevski grcevski left a comment

Choose a reason for hiding this comment

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

LGTM!

@mariomac mariomac merged commit 92a2a27 into open-telemetry:main Dec 5, 2025
71 of 72 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