chore(deps): bump opentelemetry-api from 1.39.1 to 1.45.1
DE
3d ago+70+70+01234567890123456789-37-37-01234567890123456789
Bumps opentelemetry-api from 1.39.1 to 1.45.1.
Release notes
Sourced from opentelemetry-api's releases.
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)opentelemetry-sdk:SimpleSpanProcessornow drops spans ended aftershutdown()instead of passing them to the exporter, and counts them onotel.sdk.processor.span.processedwitherror.type=already_shutdown. (#5512)- Bump pytest to 9.0.3 (#5518)
opentelemetry-exporter-otlp-proto-http: clarify that theendpoint=kwarg requires the full signal path (#5633)opentelemetry-sdk: fix typos in SpanLimits docstring (#5658)Fixed
opentelemetry-configuration: perform environment variable substitution on scalar values after parsing the configuration file, so${VAR}references inside comments and mapping keys are no longer substituted and undefined references in comments no longer abort loading (#5407)opentelemetry-configuration: declarative config environment variable substitution now replaces an unset variable that has no default with an empty value instead of raising an error, per the configuration spec. Resource attributes whose value resolves to null (an unset${VAR}with no default) are skipped with a warning instead of being inserted as a null value. (#5408)- 'scripts/build.sh
: addopentelemetry-configurationandopentelemetry-proto-json` to the package to release (#5425)opentelemetry-sdk: fixViewinstrument-name matching so a view configured with an instrument's real (mixed-case) name is applied; matching is now case-insensitive and platform-independent instead of relying onfnmatch's OS-dependent case handling (#5430)
... (truncated)
Changelog
Sourced from opentelemetry-api's changelog.
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 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 experimental
... (truncated)
Commits
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)008b5b0feat(config): wire top-level attribute_limits into per-signal providers (#5365)edfad0c[opentelemetry-sdk] Fix overwriting of the service.instance.id which has been...- 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.39.1 to 1.45.1 in uv.lock, along with the transitive OpenTelemetry SDK and instrumentation packages, logfire, and mistralai.
Migration
Loggersubclasses must now implement theenabled()method.- Attribute values now accept
None, heterogeneous and nested sequences, and nested mappings;bytesvalues pass through unmodified instead of being utf-8 decoded. tracestateparsing is fixed from quadratic to linear time and headers above 8192 characters are discarded.