Skip to content

chore(deps-dev): bump opentelemetry-api from 1.38.0 to 1.45.2 - #1528

Merged
polmichel merged 1 commit into
stablefrom
dependabot/uv/opentelemetry-api-1.45.2
Nov 16, 2026
Merged

polmichel merged 1 commit into
stablefrom
dependabot/uv/opentelemetry-api-1.45.2

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Bumps opentelemetry-api from 1.38.0 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 the otel.metric.overflow attribute, configurable through View(aggregation_cardinality_limit=...), reader cardinality_limits and declarative configuration (#5809)

Fixed

  • opentelemetry-api: limit traceparent header length to 512 characters in TraceContextTextMapPropagator during 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: make AnyValue and AttributeValue explicit type aliases (#5703)
  • opentelemetry-sdk: fix thread leak bug in resource initialization logic for long running resource detectors (#5706)
  • opentelemetry-exporter-otlp-proto-http: restore requests as the default HTTP transport so proxy environment variables such as HTTPS_PROXY are honored again (#5714)
  • opentelemetry-api: fix quadratic time parsing of the tracestate header and discard tracestate headers 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-level log_level field in declarative configuration — when set, maps the OTel SeverityNumber value to a Python logging level and applies it to the opentelemetry logger so SDK internal diagnostics respect the configured severity. (#5351)
  • opentelemetry-sdk: add the new stable AlwaysRecordSampler (#5354)
  • opentelemetry-configuration, opentelemetry-sdk: wire top-level attribute_limits into per-signal providers via declarative config; add log_record_limits support to LoggerProvider (#5365)
  • opentelemetry-exporter-otlp-json-http: add OTLP JSON HTTP exporter package (#5374)
  • opentelemetry-api, opentelemetry-sdk: add enabled() support to the Logger API, SDK, and LogRecordProcessor to 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 tracer_configurator/development, meter_configurator/development and logger_configurator/development fields into create_tracer_provider, create_meter_provider and create_logger_provider, so per-instrumentation-scope enabled overrides declared in the config file are applied to the provider (previously these fields were parsed but silently discarded). The logger minimum_severity/trace_based fields 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 on otel.sdk.processor.{span,log}.processed with error.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: add host.id to the host resource detector (#5653)
  • opentelemetry-test-utils: add CapturingSampler to 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.AttributeValue type in package opentelemetry-api is being expanded to include None, 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 a bytes type 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, since bytes is a valid type in the OTLP proto. (#5266)
  • opentelemetry-exporter-otlp-proto-http: add a max_request_size argument 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 of Logger need to implement the enabled method (#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 the otel.metric.overflow attribute, configurable through View(aggregation_cardinality_limit=...), reader cardinality_limits and declarative configuration (#5809)

Fixed

  • opentelemetry-api: limit traceparent header length to 512 characters in TraceContextTextMapPropagator during extraction (#5818)

Version 1.45.1/0.66b1 (2026-10-06)

Fixed

  • opentelemetry-api: make AnyValue and AttributeValue explicit type aliases (#5703)
  • opentelemetry-sdk: fix thread leak bug in resource initialization logic for long running resource detectors (#5706)
  • opentelemetry-exporter-otlp-proto-http: restore requests as the default HTTP transport so proxy environment variables such as HTTPS_PROXY are honored again (#5714)
  • opentelemetry-api: fix quadratic time parsing of the tracestate header and discard tracestate headers 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-level log_level field in declarative configuration — when set, maps the OTel SeverityNumber value to a Python logging level and applies it to the opentelemetry logger 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...
  • 14971ce Prepare release 1.45.1/0.66b1 (#5752)
  • 44ac26e opentelemetry-sdk: fix thread leak bug in resource initialization logic (#570...
  • a2ec3f9 [release/v1.45.x-0.66bx] opentelemetry-exporter-otlp-proto-http: restore requ...
  • d5224bf opentelemetry-api: improve performance of tracestate parsing (#5746) (#5749)
  • db61173 Declare AnyValue and AttributeValue as explicit type aliases (#5703) (#5750)
  • 4f0fcfa Prepare release 1.45.0/0.66b0 (#5690)
  • 9406f34 opentelemetry-test-utils: add CapturingSampler for instrumentation tests (#5681)
  • 1fe31a9 fix: update W3CBaggagePropagator to properly handle whitespace (#5680)
  • Additional commits viewable in compare view

Dependabot compatibility score

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 rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will 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 version will 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 dependency will 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.

View guided diff Turn on auto-fix

Bumps [opentelemetry-api](https://github.com/open-telemetry/opentelemetry-python) from 1.38.0 to 1.45.2.
- [Release notes](https://github.com/open-telemetry/opentelemetry-python/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-python/blob/main/CHANGELOG.md)
- [Commits](open-telemetry/opentelemetry-python@v1.38.0...v1.45.2)

---
updated-dependencies:
- dependency-name: opentelemetry-api
  dependency-version: 1.45.2
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

Deploying infrahub-sdk-python with  Cloudflare Pages  Cloudflare Pages

Latest commit: e1a7bf6
Status: ✅  Deploy successful!
Preview URL: https://360116bf.infrahub-sdk-python.pages.dev
Branch Preview URL: https://dependabot-uv-opentelemetry-w0fy.infrahub-sdk-python.pages.dev

View logs

@dependabot
dependabot Bot requested a review from a team as a code owner November 13, 2026 23:24
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python:uv Pull requests that update python:uv code labels Nov 13, 2026
@codecov

codecov Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

@@            Coverage Diff             @@
##           stable    #1528      +/-   ##
==========================================
- Coverage   87.88%   83.91%   -3.98%     
==========================================
  Files         157      157              
  Lines       15660    15660              
  Branches     2114     2114              
==========================================
- Hits        13763    13141     -622     
- Misses       1336     1956     +620     
- Partials      561      563       +2     
Flag Coverage Δ
integration-tests ?
python-3.10 63.03% <ø> (-0.02%) ⬇️
python-3.11 63.05% <ø> (+0.01%) ⬆️
python-3.12 63.05% <ø> (ø)
python-3.13 63.05% <ø> (ø)
python-3.14 63.05% <ø> (ø)
python-3.15 63.05% <ø> (ø)
python-filler-3.12 23.03% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.
see 30 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@polmichel

Copy link
Copy Markdown
Contributor

This report was produced by the opsmill-dev-analyzing-dependency-bumps Claude Code skill. It checks each change in the upstream changelog against how this repository uses the package.

Verdict: safe to merge. No code changes are needed. The PR changes only uv.lock, so it affects the development and CI environment. It does not change what SDK users install.

opentelemetry-api 1.38.0 → 1.45.2

Where the repository declares opentelemetry-api

The package is a direct, optional dependency, not only a dev dependency.

  • pyproject.toml declares it in the tracing extra as opentelemetry-api>=1.33, and the all extra includes tracing.
  • pyproject.toml declares it in the tests dependency group with the same constraint.
  • prefect-client 3.8.6 also depends on it, with no version constraint. infrahub-testcontainers pulls in prefect-client.

The published >=1.33 floor does not change. Users who install the tracing extra could already resolve 1.45.2.

Packages removed from the lockfile

The PR removes importlib-metadata 8.7.0 and zipp 3.23.0. Only opentelemetry-api required them. Upstream 1.42.0 replaced importlib-metadata with the standard library (#3234).

The SDK does not import either package: git grep -E "importlib_metadata|import zipp|from zipp" returns nothing. The SDK uses the standard library importlib.metadata in infrahub_sdk/trace_context.py:6.

How the repository uses opentelemetry-api

  • infrahub_sdk/trace_context.py:19 imports opentelemetry.propagate and calls propagate.inject(carrier). Line 22 catches ValueError when OTEL_PROPAGATORS is invalid.
  • infrahub_sdk/trace_context.py:37 reads the installed opentelemetry-api version and requires 1.33 or later.
  • tests/unit/sdk/test_trace_context.py:6-8 uses NonRecordingSpan, SpanContext, TraceFlags and use_span.
  • tests/unit/test_packaging_metadata.py:54 maps the opentelemetry module to the opentelemetry-api distribution.

Breaking changes between 1.38.0 and 1.45.2, checked against this repository

  • 1.45.0 (#5380) is marked [BREAKING]: subclasses of Logger must implement enabled(). Not used here, because the repository has no Logger subclass. It uses only propagate and trace.
  • 1.44.0 (#5293) removes the deprecated Events API. Not used here.
  • 1.44.0 (#5366): EnvironmentGetter.get now requires the mapping as its first argument. Not used here.
  • 1.42.0 (#5076) drops Python 3.9. No effect, because the SDK already requires >=3.10. PyPI lists requires_python >=3.10 for 1.45.2.
  • 1.42.0 (#5093) changes how propagators are loaded. I tested the behavior and it did not change.
    • With OTEL_PROPAGATORS=bogus, importing opentelemetry.propagate raises ValueError on both 1.38.0 and 1.45.2, so the except ValueError in trace_context.py:22 still applies.
    • OTEL_PROPAGATORS=none works on both versions.
  • 1.39.0 (#4676, #4647) are marked BREAKING. They change log classes in opentelemetry-sdk, which this repository does not install.

Deprecations

1.45.2 marks opentelemetry.propagate.environ_propagators as deprecated in a source comment. The repository does not use it.

Security and bug fixes

  • 1.45.2 (#5818) limits the traceparent header to 512 characters during extraction.
  • 1.45.1 (#5746) fixes quadratic-time parsing of tracestate and discards tracestate headers longer than 8192 characters.

Both fixes apply to extracting trace context from incoming requests. The SDK only injects trace context into outgoing requests, so neither fix changes the SDK's behavior.

Tests run

tests/unit/sdk/test_trace_context.py and tests/unit/test_packaging_metadata.py with opentelemetry-api==1.45.2: 46 passed, 2 skipped. I ran them on a branch where infrahub_sdk/trace_context.py is identical to stable.

Recommendation

Merge once CI passes.

Sources

🤖 Generated with Claude Code

@polmichel
polmichel merged commit fc47494 into stable Nov 16, 2026
31 checks passed
@polmichel
polmichel deleted the dependabot/uv/opentelemetry-api-1.45.2 branch November 16, 2026 20:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python:uv Pull requests that update python:uv code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant