build(deps): bump opentelemetry-api from 1.42.1 to 1.45.2
Bumps opentelemetry-api from 1.42.1 to 1.45.2.
Release notes
Sourced from opentelemetry-api's releases.
Version 1.45.2/0.66b2
This is a patch release on the previous 1.45.1/0.66b1 release, fixing the issue(s) below.
Added
opentelemetry-sdk,opentelemetry-configuration,opentelemetry-exporter-prometheus: enforce metric cardinality limits (default 2000) with theotel.metric.overflowattribute, configurable throughView(aggregation_cardinality_limit=...), readercardinality_limitsand declarative configuration (#5809)Fixed
opentelemetry-api: limittraceparentheader length to 512 characters inTraceContextTextMapPropagatorduring extraction (#5818)Version 1.45.1/0.66b1
This is a patch release on the previous 1.45.0/0.66b0 release, fixing the issue(s) below.
Fixed
opentelemetry-api: makeAnyValueandAttributeValueexplicit type aliases (#5703)opentelemetry-sdk: fix thread leak bug in resource initialization logic for long running resource detectors (#5706)opentelemetry-exporter-otlp-proto-http: restorerequestsas the default HTTP transport so proxy environment variables such asHTTPS_PROXYare honored again (#5714)opentelemetry-api: fix quadratic time parsing of thetracestateheader and discardtracestateheaders longer than 8192 characters (#5746)Version 1.45.0/0.66b0
Added
opentelemetry-exporter-prometheus: add support to configure Resource attributes as metric labels (#5122)- infra: add renovate (#5202)
opentelemetry-api,opentelemetry-sdk: add support for extended attribute values everywhere. (#5266)opentelemetry-sdk: wire the top-levellog_levelfield in declarative configuration — when set, maps the OTelSeverityNumbervalue to a Python logging level and applies it to theopentelemetrylogger so SDK internal diagnostics respect the configured severity. (#5351)opentelemetry-sdk: add the new stableAlwaysRecordSampler(#5354)opentelemetry-configuration,opentelemetry-sdk: wire top-levelattribute_limitsinto per-signal providers via declarative config; addlog_record_limitssupport toLoggerProvider(#5365)opentelemetry-exporter-otlp-json-http: add OTLP JSON HTTP exporter package (#5374)opentelemetry-api,opentelemetry-sdk: addenabled()support to the Logger API, SDK, andLogRecordProcessorto let instrumentation skip expensive work when logging is disabled (#5380)opentelemetry-exporter-otlp-json-file: add OTLP JSON file Docker tests (#5412)opentelemetry-configuration: wire the experimentaltracer_configurator/development,meter_configurator/developmentandlogger_configurator/developmentfields intocreate_tracer_provider,create_meter_providerandcreate_logger_provider, so per-instrumentation-scopeenabledoverrides declared in the config file are applied to the provider (previously these fields were parsed but silently discarded). The loggerminimum_severity/trace_basedfields are not supported by the Python SDK and are ignored with a warning. (#5418)docs/examples: add example on how to manually setup the SDK to get SDK metrics (#5449)opentelemetry-docker-tests: add Prometheus exporter docker tests (#5457)opentelemetry-sdk: count records dropped after shutdown onotel.sdk.processor.{span,log}.processedwitherror.type=already_shutdown(batch span/log and simple log processors), which the semantic conventions define as a valid value for this metric. (#5509)opentelemetry-semantic-conventions: update semantic conventions to v1.44.0 (#5511)opentelemetry-sdk: addhost.idto the host resource detector (#5653)opentelemetry-test-utils: addCapturingSamplerto record what samplers receive in instrumentation tests (#5681)Changed
- Enable
PIE(flake8-pie) ruff rule and fix all violations (#5150)- The public
opentelemetry.util.types.AttributeValuetype in packageopentelemetry-apiis being expanded to includeNone, heterogeneous sequences of primitive types (and nested sequences) as opposed to only homogeneous primitive sequences, and Mappings of strings to any primitive types or sequences/mappings (which themselves must only contain primitive types or sequences/mappings validated the same way). If abytestype is set as an attribute value in the SDK, it will no longer be utf-8 decoded to a string, instead it will be passed along as is in accordance with the OTEL spec, sincebytesis a valid type in the OTLP proto. (#5266)opentelemetry-exporter-otlp-proto-http: add amax_request_sizeargument to the OTLP HTTP exporters (traces, logs, metrics); serialized requests larger than the limit are dropped before sending, measured before compression. Defaults to 64 MiB (enabled); set to 0 to disable. Mirrors opentelemetry-go#8157. (#5369)- [BREAKING]
opentelemetry-api: subclasses ofLoggerneed to implement theenabledmethod (#5380)opentelemetry-exporter-otlp-proto-http: refactor to use shared opentelemetry-exporter-otlp-common and opentelemetry-exporter-http-transport packages and switch default HTTP backend to urllib3 (#5389)opentelemetry-sdk: unify logging force_flush timeout defaults to 30000ms (#5438)opentelemetry-python: enable Ruff default ruleset and fix auto-fixable lint issues (#5491)
... (truncated)
Changelog
Sourced from opentelemetry-api's changelog.
Version 1.45.2/0.66b2 (2026-10-29)
Added
opentelemetry-sdk,opentelemetry-configuration,opentelemetry-exporter-prometheus: enforce metric cardinality limits (default 2000) with theotel.metric.overflowattribute, configurable throughView(aggregation_cardinality_limit=...), readercardinality_limitsand declarative configuration (#5809)Fixed
opentelemetry-api: limittraceparentheader length to 512 characters inTraceContextTextMapPropagatorduring extraction (#5818)Version 1.45.1/0.66b1 (2026-10-06)
Fixed
opentelemetry-api: makeAnyValueandAttributeValueexplicit type aliases (#5703)opentelemetry-sdk: fix thread leak bug in resource initialization logic for long running resource detectors (#5706)opentelemetry-exporter-otlp-proto-http: restorerequestsas the default HTTP transport so proxy environment variables such asHTTPS_PROXYare honored again (#5714)opentelemetry-api: fix quadratic time parsing of thetracestateheader and discardtracestateheaders longer than 8192 characters (#5746)Version 1.45.0/0.66b0 (2026-09-25)
Added
opentelemetry-exporter-prometheus: add support to configure Resource attributes as metric labels (#5122)- infra: add renovate (#5202)
opentelemetry-api,opentelemetry-sdk: add support for extended attribute values everywhere. (#5266)opentelemetry-sdk: wire the top-levellog_levelfield in declarative configuration — when set, maps the OTelSeverityNumbervalue to a Python logging level and applies it to theopentelemetrylogger so SDK internal
... (truncated)
Commits
ad75594[release/v1.45.x-0.66bx] Prepare release 1.45.2/0.66b2 (#5862)78123a2[release/v1.45.x-0.66bx] Backport metric cardinality limits and traceparent p...14971cePrepare release 1.45.1/0.66b1 (#5752)44ac26eopentelemetry-sdk: fix thread leak bug in resource initialization logic (#570...a2ec3f9[release/v1.45.x-0.66bx] opentelemetry-exporter-otlp-proto-http: restore requ...d5224bfopentelemetry-api: improve performance of tracestate parsing (#5746) (#5749)db61173Declare AnyValue and AttributeValue as explicit type aliases (#5703) (#5750)4f0fcfaPrepare release 1.45.0/0.66b0 (#5690)9406f34opentelemetry-test-utils: add CapturingSampler for instrumentation tests (#5681)1fe31a9fix: update W3CBaggagePropagator to properly handle whitespace (#5680)- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the Security Alerts page.
Summary by cubic
Bumps opentelemetry-api from 1.42.1 to 1.45.2, also pulling in updates to opentelemetry-sdk, opentelemetry-semantic-conventions, and transitively google-adk and google-genai.
Important notes
Loggersubclasses must now implementenabled()traceparentextraction is limited to 512 characters;tracestateheaders over 8192 characters are discardedbytesattribute values are no longer utf-8 decoded