fix(otel v2): type the operator sink scope pairs so the widest scope reduction stays Literal

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
yucheng 2026-09-18 08:06:12 +00:00
parent d264cdf231
commit 75f926da36

View file

@ -1150,7 +1150,7 @@ def operator_sink_scopes(*configs: OpenTelemetryV2Config) -> 'Mapping[_SinkKey,
and so is one that never reaches the wire: a console kind ignores the endpoint,
and a header-gated spec with no credentials is skipped when the provider is built.
"""
scoped: Final = tuple(
scoped: Final[tuple[tuple[_SinkKey, OtelSpanScope], ...]] = tuple(
(key, _operator_scope(config, spec))
for config in configs
for spec in config.exporters