Repository navigation
Conversation
mwear
requested review from
a team,
dazuma,
fbogsany,
kaylareopelle,
robbkidd,
robertlaurin and
xuan-cao-swi
as code owners
October 15, 2026 09:36
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Related to #2127
This adds
meter_providersupport toopentelemetry-config. This might be a little early as work for some of the options is still under way in the SDK.Like logs in #2439, the metrics gems are soft dependencies, and only configured values are passed to the SDK. Omitted settings fall back to SDK defaults.
The SDK drops data for views without an aggregation, so config resolves a view's
defaultaggregation fromselector.instrument_type, and skips views that don't set one.Some settings aren't supported by the SDK yet. They're skipped with a warning, and several have open PRs:
stream.attribute_keys: the SDK merges these into the measurement attributes instead of filtering them (fix(metrics_sdk)!: add the attribute_keys filter for view #2426)default_histogram_aggregation(feat(metrics_sdk): support OTEL_EXPORTER_OTLP_METRICS_DEFAULT_HISTOGRAM_AGGREGATION env var #2389)stream.description(feat(metrics_sdk): add reservoir and description option for view #2427)producers(feat(metrics): add metrics producer and filter #2418)temporality_preference,pullreaders,otlp_grpc,otlp_file/development,stream.name,selector.meter_schema_url, and per-instrument-kindcardinality_limitsI'll wire these up as the SDK support lands.
Changes
MeterProviderfrommeter_provider, withperiodicreaders,consoleandotlp_httpexporters, views, andexemplar_filterConfig.installregisters the meter provider asOpenTelemetry.meter_provider, upgrading the default proxy, and attaches fork hooks so periodic readers restart in forked processesAuthorship