Update opentelemetry-python monorepo to v1.40.0 #197

Closed
renovate wants to merge 1 commit from renovate/opentelemetry-python-monorepo into main
Collaborator

This PR contains the following updates:

Package Change Age Confidence
opentelemetry-api ==1.24.0 → ==1.40.0 age confidence
opentelemetry-exporter-otlp-proto-grpc ==1.24.0 → ==1.40.0 age confidence
opentelemetry-sdk ==1.24.0 → ==1.40.0 age confidence

Release Notes

open-telemetry/opentelemetry-python (opentelemetry-api)

v1.40.0

Compare Source

  • opentelemetry-sdk: deprecate LoggingHandler in favor of opentelemetry-instrumentation-logging, see opentelemetry-instrumentation-logging documentation
    (#​4919)
  • opentelemetry-sdk: Clarify log processor error handling expectations in documentation
    (#​4915)
  • bump semantic-conventions to v1.40.0
    (#​4941)
  • Add stale PR GitHub Action
    (#​4926)
  • opentelemetry-sdk: Drop unused Jaeger exporter environment variables (exporter removed in 1.22.0)
    (#​4918)
  • opentelemetry-sdk: Clarify timeout units in environment variable documentation
    (#​4906)
  • opentelemetry-exporter-otlp-proto-grpc: Fix re-initialization of gRPC channel on UNAVAILABLE error
    (#​4825)
  • opentelemetry-exporter-prometheus: Fix duplicate HELP/TYPE declarations for metrics with different label sets
    (#​4868)
  • Allow loading all resource detectors by setting OTEL_EXPERIMENTAL_RESOURCE_DETECTORS to *
    (#​4819)
  • opentelemetry-sdk: Fix the type hint of the _metrics_data property to allow None
    (#​4837).
  • Regenerate opentelemetry-proto code with v1.9.0 release
    (#​4840)
  • Add python 3.14 support
    (#​4798)
  • Silence events API warnings for internal users
    (#​4847)
  • opentelemetry-sdk: make it possible to override the default processors in the SDK configurator
    (#​4806)
  • Prevent possible endless recursion from happening in SimpleLogRecordProcessor.on_emit,
    (#​4799) and (#​4867).
  • Implement span start/end metrics
    (#​4880)
  • Add environment variable carriers to API
    (#​4609)
  • Add experimental composable rule based sampler
    (#​4882)
  • Make ConcurrentMultiSpanProcessor fork safe
    (#​4862)
  • opentelemetry-exporter-otlp-proto-http: fix retry logic and error handling for connection failures in trace, metric, and log exporters
    (#​4709)
  • opentelemetry-sdk: avoid RuntimeError during iteration of view instrument match dictionary in MetricReaderStorage.collect()
    (#​4891)
  • Implement experimental TracerConfigurator
    (#​4861)
  • opentelemetry-sdk: Fix instrument creation race condition
    (#​4913)
  • bump semantic-conventions to v1.39.0
    (#​4914)
  • opentelemetry-sdk: automatically generate configuration models using OTel config JSON schema
    (#​4879)

v1.39.1: Version 1.39.1/0.60b1

Compare Source

This is a patch release on the previous 1.39.0/0.60b0 release, fixing the issue(s) below.

  • Silence events API warnings for internal users (#​4847)

v1.39.0

Compare Source

  • opentelemetry-api: Convert objects of any type other than AnyValue in attributes to string to be exportable
    (#​4808)

  • docs: Added sqlcommenter example
    (#​4734)

  • build: bump ruff to 0.14.1
    (#​4782)

  • Add opentelemetry-exporter-credential-provider-gcp as an optional dependency to opentelemetry-exporter-otlp-proto-grpc
    and opentelemetry-exporter-otlp-proto-http
    (#​4760)

  • feat: implement on ending in span processor
    (#​4775)

  • semantic-conventions: Bump to 1.38.0
    (#​4791)

  • [BREAKING] Remove LogData and extend SDK LogRecord to have instrumentation scope
    (#​4676)

  • [BREAKING] Rename several classes from Log to LogRecord
    (#​4647)

    Migration Guide:

    LogData has been removed. Users should update their code as follows:

    • For Log Exporters: Change from Sequence[LogData] to Sequence[ReadableLogRecord]

      # Before
      from opentelemetry.sdk._logs import LogData
      def export(self, batch: Sequence[LogData]) -> LogRecordExportResult:
          ...
      
      # After
      from opentelemetry.sdk._logs import ReadableLogRecord
      def export(self, batch: Sequence[ReadableLogRecord]) -> LogRecordExportResult:
          ...
      
    • For Log Processors: Use ReadWriteLogRecord for processing, ReadableLogRecord for exporting

      # Before
      from opentelemetry.sdk._logs import LogData
      def on_emit(self, log_data: LogData):
          ...
      
      # After
      from opentelemetry.sdk._logs import ReadWriteLogRecord, ReadableLogRecord
      def on_emit(self, log_record: ReadWriteLogRecord):
          # Convert to ReadableLogRecord before exporting
          readable = ReadableLogRecord(
              log_record=log_record.log_record,
              resource=log_record.resource or Resource.create({}),
              instrumentation_scope=log_record.instrumentation_scope,
              limits=log_record.limits,
          )
          ...
      
    • Accessing log data: Use the same attributes on ReadableLogRecord/ReadWriteLogRecord

      • log_record.log_record - The API LogRecord (contains body, severity, attributes, etc.)
      • log_record.resource - The Resource
      • log_record.instrumentation_scope - The InstrumentationScope (now included, was in LogData before)
      • log_record.limits - The LogRecordLimits
  • Mark the Events API/SDK as deprecated. The Logs API/SDK should be used instead, an event is now a LogRecord with the event_name field set
    (#​4654).

  • Fix type checking for built-in metric exporters
    (#​4820)

v1.38.0

Compare Source

  • Add rstcheck to pre-commit to stop introducing invalid RST
    (#​4755)
  • logs: extend Logger.emit to accept separated keyword arguments
    (#​4737)
  • logs: add warnings for classes that would be deprecated and renamed in 1.39.0
    (#​4771)

v1.37.0

Compare Source

  • Add experimental composite samplers
    (#​4714)
  • Add new environment variables to the SDK OTEL_PYTHON_EXPORTER_OTLP_{HTTP/GRPC}_{METRICS/TRACES/LOGS}_CREDENTIAL_PROVIDER that can be used to
    inject a requests.Session or grpc.ChannelCredentials object into OTLP exporters created during auto instrumentation #​4689.
  • Filter duplicate logs out of some internal logger's logs on the export logs path that might otherwise endlessly log or cause a recursion depth exceeded issue in cases where logging itself results in an exception.
    (#​4695).
  • docs: linked the examples with their github source code location and added Prometheus example
    (#​4728)
  • Permit to override default HTTP OTLP exporters headers
    (#​4634)
  • semantic-conventions: Bump to 1.37.0
    (#​4731)
  • opentelemetry-sdk: fix handling of OTEL_ATTRIBUTE_COUNT_LIMIT in logs
    (#​4677)
  • Performance: Cache importlib_metadata.entry_points
    (#​4735)
  • opentelemetry-sdk: fix calling Logger.emit with an API LogRecord instance
    (#​4741)

v1.36.0

Compare Source

  • Add missing Prometheus exporter documentation
    (#​4485)

  • Overwrite logging.config.fileConfig and logging.config.dictConfig to ensure
    the OTLP LogHandler remains attached to the root logger. Fix a bug that
    can cause a deadlock to occur over logging._lock in some cases (#​4636).

  • otlp-http-exporter: set default value for param timeout_sec in _export method
    (#​4691)

  • Update OTLP gRPC/HTTP exporters: calling shutdown will now interrupt exporters that are sleeping
    before a retry attempt, and cause them to return failure immediately.
    Update BatchSpan/LogRecordProcessors: shutdown will now complete after 30 seconds of trying to finish
    exporting any buffered telemetry, instead of continuing to export until all telemetry was exported.
    (#​4638).

v1.35.0

Compare Source

  • Update OTLP proto to v1.7 #​4645.
  • Add event_name as a top level field in the LogRecord. Events are now simply logs with the
    event_name field set, the logs SDK should be used to emit events (#​4652).
  • Update OTLP gRPC/HTTP exporters: the export timeout is now inclusive of all retries and backoffs.
    A +/-20% jitter was added to all backoffs. A pointless 32 second sleep that occurred after all retries
    had completed/failed was removed.
    (#​4564).
  • Update ConsoleLogExporter.export to handle LogRecord's containing bytes type
    in the body (#​4614).
  • opentelemetry-sdk: Fix invalid type: ignore that causes mypy to ignore the whole file
    (#​4618)
  • Add span_exporter property back to BatchSpanProcessor class
    (#​4621)
  • Fix license field in pyproject.toml files
    (#​4625)
  • Update logger level to NOTSET in logs example
    (#​4637)
  • Logging API accepts optional context; deprecates trace_id, span_id, trace_flags.
    (#​4597) and
    (#​4668)
  • sdk: use context instead of trace_id,span_id for initializing LogRecord
    (#​4653)
  • Rename LogRecordProcessor.emit to on_emit
    (#​4648)
  • Logging API hide std_to_otel function to convert python logging severity to otel severity
    (#​4649)
  • proto: relax protobuf version requirement to support v6
    (#​4620)
  • Bump semantic-conventions to 1.36.0
    (#​4669)
  • Set expected User-Agent in HTTP headers for grpc OTLP exporter
    (#​4658)

v1.34.1: Version 1.34.1/0.55b1

Compare Source

This is a patch release on the previous 1.34.0/0.55b0 release, fixing the issue(s) below.

  • opentelemetry-sdk: Fix invalid type: ignore that causes mypy to ignore the whole file (#​4618)
  • Add span_exporter property back to BatchSpanProcessor class (#​4621)

v1.34.0

Compare Source

  • typecheck: add sdk/resources and drop mypy
    (#​4578)
  • Use PEP702 for marking deprecations
    (#​4522)
  • Refactor BatchLogRecordProcessor and BatchSpanProcessor to simplify code
    and make the control flow more clear (#​4562
    #​4535, and
    #​4580).
  • Remove log messages from BatchLogRecordProcessor.emit, this caused the program
    to crash at shutdown with a max recursion error (#​4586).
  • Configurable max retry timeout for grpc exporter
    (#​4333)
  • opentelemetry-api: allow importlib-metadata 8.7.0
    (#​4593)
  • opentelemetry-test-utils: assert explicit bucket boundaries in histogram metrics
    (#​4595)
  • Bump semantic conventions to 1.34.0
    (#​4599)
  • Drop support for Python 3.8
    (#​4520)

v1.33.1: Version 1.33.1/0.54b1

Compare Source

This is a patch release on the previous 1.33.0/0.54b0 release, fixing the issue(s) below.

  • Remove log messages from BatchLogRecordProcessor.emit, this caused the program to crash at shutdown with a max recursion error (#​4586).

v1.33.0

Compare Source

  • Fix intermittent Connection aborted error when using otlp/http exporters
    (#​4477)
  • opentelemetry-sdk: use stable code attributes: code.function -> code.function.name, code.lineno -> code.line.number, code.filepath -> code.file.path
    (#​4508)
  • Fix serialization of extended attributes for logs signal
    (#​4342)
  • Handle OTEL_PROPAGATORS contains None
    (#​4553)
  • docs: updated and added to the metrics and log examples
    (#​4559)
  • Bump semantic conventions to 1.33.0
    (#​4567)

v1.32.1: Version 1.32.1/0.53b1

Compare Source

This is a patch release on the previous 1.32.0/0.53b0 release, fixing the issue(s) below.

v1.32.0

Compare Source

  • Fix user agent in OTLP HTTP metrics exporter
    (#​4475)
  • Improve performance of baggage operations
    (#​4466)
  • sdk: remove duplicated constant definitions for environment_variables
    (#​4491)
  • api: Revert record BaseException change in trace_api.use_span()
    (#​4494)
  • Improve CI by cancelling stale runs and setting timeouts
    (#​4498)
  • Patch logging.basicConfig so OTel logs don't cause console logs to disappear
    (#​4436)
  • Bump semantic conventions to 1.32.0
    (#​4530)
  • Fix ExplicitBucketHistogramAggregation to handle multiple explicit bucket boundaries advisories
    (#​4521)
  • opentelemetry-sdk: Fix serialization of objects in log handler
    (#​4528)

v1.31.1: Version 1.31.1/0.52b1

Compare Source

This is a patch release on the previous 1.31.0/0.52b0 release, fixing the issue(s) below.

  • api: Revert record BaseException change in trace_api.use_span() (#​4494)

v1.31.0

Compare Source

  • semantic-conventions: Bump to 1.31.0
    (#​4471)
  • Add type annotations to context's attach & detach
    (#​4346)
  • Fix OTLP encoders missing instrumentation scope schema url and attributes
    (#​4359)
  • prometheus-exporter: fix labels out of place for data points with different
    attribute sets
    (#​4413)
  • Type indent parameter in to_json
    (#​4402)
  • Tolerates exceptions when loading resource detectors via OTEL_EXPERIMENTAL_RESOURCE_DETECTORS
    (#​4373)
  • Disconnect gRPC client stub when shutting down OTLPSpanExporter
    (#​4370)
  • opentelemetry-sdk: fix OTLP exporting of Histograms with explicit buckets advisory
    (#​4434)
  • opentelemetry-exporter-otlp-proto-grpc: better dependency version range for Python 3.13
    (#​4444)
  • opentelemetry-exporter-opencensus: better dependency version range for Python 3.13
    (#​4444)
  • Updated tracecontext-integration-test gitref to d782773b2cf2fa4afd6a80a93b289d8a74ca894d
    (#​4448)
  • Make trace_api.use_span() record BaseException as well as Exception
    (#​4406)
  • Fix env var error message for TraceLimits/SpanLimits
    (#​4458)
  • pylint-ci updated python version to 3.13
    (#​4450)
  • Fix memory leak in Log & Trace exporter
    (#​4449)

v1.30.0

Compare Source

  • Always setup logs sdk, OTEL_PYTHON_LOGGING_AUTO_INSTRUMENTATION_ENABLED only controls python logging module handler setup
    (#​4340)
  • Add attributes field in metrics.get_meter wrapper function
    (#​4364)
  • Add Python 3.13 support
    (#​4353)
  • sdk: don't log or print warnings when the SDK has been disabled
    (#​4371)
  • Fix span context manager typing by using ParamSpec from typing_extensions
    (#​4389)
  • Fix serialization of None values in logs body to match 1.31.0+ data model
    (#​4400)
  • [BREAKING] semantic-conventions: Remove opentelemetry.semconv.attributes.network_attributes.NETWORK_INTERFACE_NAME
    introduced by mistake in the wrong module.
    (#​4391)
  • Add support for explicit bucket boundaries advisory for Histograms
    (#​4361)
  • semantic-conventions: Bump to 1.30.0
    (#​4337)

v1.29.0

Compare Source

  • Fix crash exporting a log record with None body
    (#​4276)
  • Fix metrics export with exemplar and no context and filtering observable instruments
    (#​4251)
  • Fix recursion error with sdk disabled and handler added to root logger
    (#​4259)
  • sdk: setup EventLogger when OTEL_PYTHON_LOGGING_AUTO_INSTRUMENTATION_ENABLED is set
    (#​4270)
  • api: fix logging of duplicate EventLogger setup warning
    (#​4299)
  • sdk: fix setting of process owner in ProcessResourceDetector
    (#​4311)
  • sdk: fix serialization of logs severity_number field to int
    (#​4324)
  • Remove TestBase.assertEqualSpanInstrumentationInfo method, use assertEqualSpanInstrumentationScope instead
    (#​4310)
  • sdk: instantiate lazily ExemplarBuckets in ExemplarReservoirs
    (#​4260)
  • semantic-conventions: Bump to 1.29.0
    (#​4337)

v1.28.2: Version 1.28.2/0.49b2

Compare Source

This is a patch release on the previous 1.28.1/0.49b1 release, fixing the issue(s) below.

  • Fix crash exporting a log record with None body (#​4276)
  • sdk: setup EventLogger when OTEL_PYTHON_LOGGING_AUTO_INSTRUMENTATION_ENABLED is set (#​4270)

v1.28.1: Version 1.28.1/0.49b1

Compare Source

This is a patch release on the previous 1.28.0/0.49b0 release, fixing the issue(s) below.

  • Fix metrics export with exemplar and no context and filtering observable instruments (#​4251)
  • Fix recursion error with sdk disabled and handler added to root logger (#​4259)

v1.28.0

Compare Source

  • Removed superfluous py.typed markers and added them where they were missing
    (#​4172)
  • Include metric info in encoding exceptions
    (#​4154)
  • sdk: Add support for log formatting
    (#​4137)
  • sdk: Add Host resource detector
    (#​4182)
  • sdk: Implementation of exemplars
    (#​4094)
  • Implement events sdk
    (#​4176)
  • Update semantic conventions to version 1.28.0
    (#​4218)
  • Add support to protobuf 5+ and drop support to protobuf 3 and 4
    (#​4206)
  • Update environment variable descriptions to match signal
    (#​4222)
  • Record logger name as the instrumentation scope name
    (#​4208)
  • Fix memory leak in exporter and reader
    (#​4224)
  • Drop OTEL_PYTHON_EXPERIMENTAL_DISABLE_PROMETHEUS_UNIT_NORMALIZATION environment variable
    (#​4217)
  • Improve compatibility with other logging libraries that override
    LogRecord.getMessage() in order to customize message formatting
    (#​4216)

v1.27.0

Compare Source

  • Implementation of Events API
    (#​4054)
  • Make log sdk add exception.message to logRecord for exceptions whose argument
    is an exception not a string message
    (#​4122)
  • Fix use of link.attributes.dropped, which may not exist
    (#​4119)
  • Running mypy on SDK resources
    (#​4053)
  • Added py.typed file to top-level module
    (#​4084)
  • Drop Final annotation from Enum in semantic conventions
    (#​4085)
  • Update log export example to not use root logger (#​4090)
  • sdk: Add OS resource detector
    (#​3992)
  • sdk: Accept non URL-encoded headers in OTEL_EXPORTER_OTLP_*HEADERS to match other languages SDKs
    (#​4103)
  • Update semantic conventions to version 1.27.0
    (#​4104)
  • Add support to type bytes for OTLP AnyValue
    (#​4128)
  • Export ExponentialHistogram and ExponentialHistogramDataPoint
    (#​4134)
  • Implement Client Key and Certificate File Support for All OTLP Exporters
    (#​4116)
  • Remove _start_time_unix_nano attribute from _ViewInstrumentMatch in favor
    of using time_ns() at the moment when the aggregation object is created
    (#​4137)

v1.26.0

Compare Source

  • Standardizing timeout calculation in measurement consumer collect to nanoseconds
    (#​4074)
  • optional scope attributes for logger creation
    (#​4035)
  • optional scope attribute for tracer creation
    (#​4028)
  • OTLP exporter is encoding invalid span/trace IDs in the logs fix
    (#​4006)
  • Update sdk process resource detector process.command_args attribute to also include the executable itself
    (#​4032)
  • Fix start_time_unix_nano for delta collection for explicit bucket histogram aggregation
    (#​4009)
  • Fix start_time_unix_nano for delta collection for sum aggregation
    (#​4011)
  • Update opentracing and opencesus docs examples to not use JaegerExporter
    (#​4023)
  • Do not execute Flask Tests in debug mode
    (#​3956)
  • When encountering an error encoding metric attributes in the OTLP exporter, log the key that had an error.
    (#​3838)
  • Fix ExponentialHistogramAggregation
    (#​3978)
  • Log a warning when a LogRecord in sdk/log has dropped attributes
    due to reaching limits
    (#​3946)
  • Fix RandomIdGenerator can generate invalid Span/Trace Ids
    (#​3949)
  • Add Python 3.12 to tox
    (#​3616)
  • Improve resource field structure for LogRecords
    (#​3972)
  • Update Semantic Conventions code generation scripts:
    • fix namespace exclusion that resulted in dropping os and net namespaces.
    • add Final decorator to constants to prevent collisions
    • enable mypy and fix detected issues
    • allow to drop specific attributes in preparation for Semantic Conventions v1.26.0
      (#​3973)
  • Update semantic conventions to version 1.26.0.
    (#​3964)
  • Use semconv exception attributes for record exceptions in spans
    (#​3979)
  • Fix _encode_events assumes events.attributes.dropped exists
    (#​3965)
  • Validate links at span creation
    (#​3991)
  • Add attributes field in MeterProvider.get_meter and InstrumentationScope
    (#​4015)
  • Fix inaccessible SCHEMA_URL constants in opentelemetry-semantic-conventions
    (#​4069)

v1.25.0

Compare Source

  • Fix class BoundedAttributes to have RLock rather than Lock
    (#​3859)
  • Remove thread lock by loading RuntimeContext explicitly.
    (#​3763)
  • Update proto version to v1.2.0
    (#​3844)
  • Add to_json method to ExponentialHistogram
    (#​3780)
  • Bump mypy to 1.9.0
    (#​3795)
  • Fix exponential histograms
    (#​3798)
  • Fix otlp exporter to export log_record.observed_timestamp
    (#​3785)
  • Add capture the fully qualified type name for raised exceptions in spans
    (#​3837)
  • Prometheus exporter sort label keys to prevent duplicate metrics when user input changes order
    (#​3698)
  • Update semantic conventions to version 1.25.0.
    Refactor semantic-convention structure:
    • SpanAttributes, ResourceAttributes, and MetricInstruments are deprecated.
    • Attribute and metric definitions are now grouped by the namespace.
    • Stable attributes and metrics are moved to opentelemetry.semconv.attributes
      and opentelemetry.semconv.metrics modules.
    • Stable and experimental attributes and metrics are defined under
      opentelemetry.semconv._incubating import path.
      (#​3586)
  • Rename test objects to avoid pytest warnings
    ([#​3823] (#​3823))
  • Add span flags to OTLP spans and links
    (#​3881)
  • Record links with invalid SpanContext if either attributes or TraceState are not empty
    (#​3917)
  • Add OpenTelemetry trove classifiers to PyPI packages
    ([#​3913] (#​3913))
  • Fix prometheus metric name and unit conversion
    (#​3924)
    • this is a breaking change to prometheus metric names so they comply with the
      specification.
    • you can temporarily opt-out of the unit normalization by setting the environment variable
      OTEL_PYTHON_EXPERIMENTAL_DISABLE_PROMETHEUS_UNIT_NORMALIZATION=true
    • common unit abbreviations are converted to Prometheus conventions (s -> seconds),
      following the collector's implementation
    • repeated _ are replaced with a single _
    • unit annotations (enclosed in curly braces like {requests}) are stripped away
    • units with slash are converted e.g. m/s -> meters_per_second.
    • The exporter's API is not changed
  • Add parameters for Distros and configurators to configure autoinstrumentation in addition to existing environment variables.
    (#​3864)

Configuration

📅 Schedule: Branch creation - Only on Sunday and Saturday ( * * * * 0,6 ) in timezone America/New_York, Automerge - Only on Sunday and Saturday ( * * * * 0,6 ) in timezone America/New_York.

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [opentelemetry-api](https://github.com/open-telemetry/opentelemetry-python) | `==1.24.0` → `==1.40.0` | ![age](https://developer.mend.io/api/mc/badges/age/pypi/opentelemetry-api/1.40.0?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/opentelemetry-api/1.24.0/1.40.0?slim=true) | | [opentelemetry-exporter-otlp-proto-grpc](https://github.com/open-telemetry/opentelemetry-python) | `==1.24.0` → `==1.40.0` | ![age](https://developer.mend.io/api/mc/badges/age/pypi/opentelemetry-exporter-otlp-proto-grpc/1.40.0?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/opentelemetry-exporter-otlp-proto-grpc/1.24.0/1.40.0?slim=true) | | [opentelemetry-sdk](https://github.com/open-telemetry/opentelemetry-python) | `==1.24.0` → `==1.40.0` | ![age](https://developer.mend.io/api/mc/badges/age/pypi/opentelemetry-sdk/1.40.0?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/opentelemetry-sdk/1.24.0/1.40.0?slim=true) | --- ### Release Notes <details> <summary>open-telemetry/opentelemetry-python (opentelemetry-api)</summary> ### [`v1.40.0`](https://github.com/open-telemetry/opentelemetry-python/blob/HEAD/CHANGELOG.md#Version-1400061b0-2026-03-04) [Compare Source](https://github.com/open-telemetry/opentelemetry-python/compare/v1.39.1...v1.40.0) - `opentelemetry-sdk`: deprecate `LoggingHandler` in favor of `opentelemetry-instrumentation-logging`, see `opentelemetry-instrumentation-logging` documentation ([#&#8203;4919](https://github.com/open-telemetry/opentelemetry-python/pull/4919)) - `opentelemetry-sdk`: Clarify log processor error handling expectations in documentation ([#&#8203;4915](https://github.com/open-telemetry/opentelemetry-python/pull/4915)) - bump semantic-conventions to v1.40.0 ([#&#8203;4941](https://github.com/open-telemetry/opentelemetry-python/pull/4941)) - Add stale PR GitHub Action ([#&#8203;4926](https://github.com/open-telemetry/opentelemetry-python/pull/4926)) - `opentelemetry-sdk`: Drop unused Jaeger exporter environment variables (exporter removed in 1.22.0) ([#&#8203;4918](https://github.com/open-telemetry/opentelemetry-python/issues/4918)) - `opentelemetry-sdk`: Clarify timeout units in environment variable documentation ([#&#8203;4906](https://github.com/open-telemetry/opentelemetry-python/pull/4906)) - `opentelemetry-exporter-otlp-proto-grpc`: Fix re-initialization of gRPC channel on UNAVAILABLE error ([#&#8203;4825](https://github.com/open-telemetry/opentelemetry-python/pull/4825)) - `opentelemetry-exporter-prometheus`: Fix duplicate HELP/TYPE declarations for metrics with different label sets ([#&#8203;4868](https://github.com/open-telemetry/opentelemetry-python/issues/4868)) - Allow loading all resource detectors by setting `OTEL_EXPERIMENTAL_RESOURCE_DETECTORS` to `*` ([#&#8203;4819](https://github.com/open-telemetry/opentelemetry-python/pull/4819)) - `opentelemetry-sdk`: Fix the type hint of the `_metrics_data` property to allow `None` ([#&#8203;4837](https://github.com/open-telemetry/opentelemetry-python/pull/4837)). - Regenerate opentelemetry-proto code with v1.9.0 release ([#&#8203;4840](https://github.com/open-telemetry/opentelemetry-python/pull/4840)) - Add python 3.14 support ([#&#8203;4798](https://github.com/open-telemetry/opentelemetry-python/pull/4798)) - Silence events API warnings for internal users ([#&#8203;4847](https://github.com/open-telemetry/opentelemetry-python/pull/4847)) - opentelemetry-sdk: make it possible to override the default processors in the SDK configurator ([#&#8203;4806](https://github.com/open-telemetry/opentelemetry-python/pull/4806)) - Prevent possible endless recursion from happening in `SimpleLogRecordProcessor.on_emit`, ([#&#8203;4799](https://github.com/open-telemetry/opentelemetry-python/pull/4799)) and ([#&#8203;4867](https://github.com/open-telemetry/opentelemetry-python/pull/4867)). - Implement span start/end metrics ([#&#8203;4880](https://github.com/open-telemetry/opentelemetry-python/pull/4880)) - Add environment variable carriers to API ([#&#8203;4609](https://github.com/open-telemetry/opentelemetry-python/pull/4609)) - Add experimental composable rule based sampler ([#&#8203;4882](https://github.com/open-telemetry/opentelemetry-python/pull/4882)) - Make ConcurrentMultiSpanProcessor fork safe ([#&#8203;4862](https://github.com/open-telemetry/opentelemetry-python/pull/4862)) - `opentelemetry-exporter-otlp-proto-http`: fix retry logic and error handling for connection failures in trace, metric, and log exporters ([#&#8203;4709](https://github.com/open-telemetry/opentelemetry-python/pull/4709)) - `opentelemetry-sdk`: avoid RuntimeError during iteration of view instrument match dictionary in MetricReaderStorage.collect() ([#&#8203;4891](https://github.com/open-telemetry/opentelemetry-python/pull/4891)) - Implement experimental TracerConfigurator ([#&#8203;4861](https://github.com/open-telemetry/opentelemetry-python/pull/4861)) - `opentelemetry-sdk`: Fix instrument creation race condition ([#&#8203;4913](https://github.com/open-telemetry/opentelemetry-python/pull/4913)) - bump semantic-conventions to v1.39.0 ([#&#8203;4914](https://github.com/open-telemetry/opentelemetry-python/pull/4914)) - `opentelemetry-sdk`: automatically generate configuration models using OTel config JSON schema ([#&#8203;4879](https://github.com/open-telemetry/opentelemetry-python/pull/4879)) ### [`v1.39.1`](https://github.com/open-telemetry/opentelemetry-python/releases/tag/v1.39.1): Version 1.39.1/0.60b1 [Compare Source](https://github.com/open-telemetry/opentelemetry-python/compare/v1.39.0...v1.39.1) This is a patch release on the previous 1.39.0/0.60b0 release, fixing the issue(s) below. - Silence events API warnings for internal users ([#&#8203;4847](https://github.com/open-telemetry/opentelemetry-python/pull/4847)) ### [`v1.39.0`](https://github.com/open-telemetry/opentelemetry-python/blob/HEAD/CHANGELOG.md#Version-1390060b0-2025-12-03) [Compare Source](https://github.com/open-telemetry/opentelemetry-python/compare/v1.38.0...v1.39.0) - `opentelemetry-api`: Convert objects of any type other than AnyValue in attributes to string to be exportable ([#&#8203;4808](https://github.com/open-telemetry/opentelemetry-python/pull/4808)) - docs: Added sqlcommenter example ([#&#8203;4734](https://github.com/open-telemetry/opentelemetry-python/pull/4734)) - build: bump ruff to 0.14.1 ([#&#8203;4782](https://github.com/open-telemetry/opentelemetry-python/pull/4782)) - Add `opentelemetry-exporter-credential-provider-gcp` as an optional dependency to `opentelemetry-exporter-otlp-proto-grpc` and `opentelemetry-exporter-otlp-proto-http` ([#&#8203;4760](https://github.com/open-telemetry/opentelemetry-python/pull/4760)) - feat: implement on ending in span processor ([#&#8203;4775](https://github.com/open-telemetry/opentelemetry-python/pull/4775)) - semantic-conventions: Bump to 1.38.0 ([#&#8203;4791](https://github.com/open-telemetry/opentelemetry-python/pull/4791)) - \[BREAKING] Remove LogData and extend SDK LogRecord to have instrumentation scope ([#&#8203;4676](https://github.com/open-telemetry/opentelemetry-python/pull/4676)) - \[BREAKING] Rename several classes from Log to LogRecord ([#&#8203;4647](https://github.com/open-telemetry/opentelemetry-python/pull/4647)) **Migration Guide:** `LogData` has been removed. Users should update their code as follows: - **For Log Exporters:** Change from `Sequence[LogData]` to `Sequence[ReadableLogRecord]` ```python # Before from opentelemetry.sdk._logs import LogData def export(self, batch: Sequence[LogData]) -> LogRecordExportResult: ... # After from opentelemetry.sdk._logs import ReadableLogRecord def export(self, batch: Sequence[ReadableLogRecord]) -> LogRecordExportResult: ... ``` - **For Log Processors:** Use `ReadWriteLogRecord` for processing, `ReadableLogRecord` for exporting ```python # Before from opentelemetry.sdk._logs import LogData def on_emit(self, log_data: LogData): ... # After from opentelemetry.sdk._logs import ReadWriteLogRecord, ReadableLogRecord def on_emit(self, log_record: ReadWriteLogRecord): # Convert to ReadableLogRecord before exporting readable = ReadableLogRecord( log_record=log_record.log_record, resource=log_record.resource or Resource.create({}), instrumentation_scope=log_record.instrumentation_scope, limits=log_record.limits, ) ... ``` - **Accessing log data:** Use the same attributes on `ReadableLogRecord`/`ReadWriteLogRecord` - `log_record.log_record` - The API LogRecord (contains body, severity, attributes, etc.) - `log_record.resource` - The Resource - `log_record.instrumentation_scope` - The InstrumentationScope (now included, was in LogData before) - `log_record.limits` - The LogRecordLimits - Mark the Events API/SDK as deprecated. The Logs API/SDK should be used instead, an event is now a `LogRecord` with the `event_name` field set ([#&#8203;4654](https://github.com/open-telemetry/opentelemetry-python/pull/4654)). - Fix type checking for built-in metric exporters ([#&#8203;4820](https://github.com/open-telemetry/opentelemetry-python/pull/4820)) ### [`v1.38.0`](https://github.com/open-telemetry/opentelemetry-python/blob/HEAD/CHANGELOG.md#Version-1380059b0-2025-10-16) [Compare Source](https://github.com/open-telemetry/opentelemetry-python/compare/v1.37.0...v1.38.0) - Add `rstcheck` to pre-commit to stop introducing invalid RST ([#&#8203;4755](https://github.com/open-telemetry/opentelemetry-python/pull/4755)) - logs: extend Logger.emit to accept separated keyword arguments ([#&#8203;4737](https://github.com/open-telemetry/opentelemetry-python/pull/4737)) - logs: add warnings for classes that would be deprecated and renamed in 1.39.0 ([#&#8203;4771](https://github.com/open-telemetry/opentelemetry-python/pull/4771)) ### [`v1.37.0`](https://github.com/open-telemetry/opentelemetry-python/blob/HEAD/CHANGELOG.md#Version-1370058b0-2025-09-11) [Compare Source](https://github.com/open-telemetry/opentelemetry-python/compare/v1.36.0...v1.37.0) - Add experimental composite samplers ([#&#8203;4714](https://github.com/open-telemetry/opentelemetry-python/pull/4714)) - Add new environment variables to the SDK `OTEL_PYTHON_EXPORTER_OTLP_{HTTP/GRPC}_{METRICS/TRACES/LOGS}_CREDENTIAL_PROVIDER` that can be used to inject a `requests.Session` or `grpc.ChannelCredentials` object into OTLP exporters created during auto instrumentation [#&#8203;4689](https://github.com/open-telemetry/opentelemetry-python/pull/4689). - Filter duplicate logs out of some internal `logger`'s logs on the export logs path that might otherwise endlessly log or cause a recursion depth exceeded issue in cases where logging itself results in an exception. ([#&#8203;4695](https://github.com/open-telemetry/opentelemetry-python/pull/4695)). - docs: linked the examples with their github source code location and added Prometheus example ([#&#8203;4728](https://github.com/open-telemetry/opentelemetry-python/pull/4728)) - Permit to override default HTTP OTLP exporters headers ([#&#8203;4634](https://github.com/open-telemetry/opentelemetry-python/pull/4634)) - semantic-conventions: Bump to 1.37.0 ([#&#8203;4731](https://github.com/open-telemetry/opentelemetry-python/pull/4731)) - opentelemetry-sdk: fix handling of OTEL\_ATTRIBUTE\_COUNT\_LIMIT in logs ([#&#8203;4677](https://github.com/open-telemetry/opentelemetry-python/pull/4677)) - Performance: Cache `importlib_metadata.entry_points` ([#&#8203;4735](https://github.com/open-telemetry/opentelemetry-python/pull/4735)) - opentelemetry-sdk: fix calling Logger.emit with an API LogRecord instance ([#&#8203;4741](https://github.com/open-telemetry/opentelemetry-python/pull/4741)) ### [`v1.36.0`](https://github.com/open-telemetry/opentelemetry-python/blob/HEAD/CHANGELOG.md#Version-1360057b0-2025-07-29) [Compare Source](https://github.com/open-telemetry/opentelemetry-python/compare/v1.35.0...v1.36.0) - Add missing Prometheus exporter documentation ([#&#8203;4485](https://github.com/open-telemetry/opentelemetry-python/pull/4485)) - Overwrite logging.config.fileConfig and logging.config.dictConfig to ensure the OTLP `LogHandler` remains attached to the root logger. Fix a bug that can cause a deadlock to occur over `logging._lock` in some cases ([#&#8203;4636](https://github.com/open-telemetry/opentelemetry-python/pull/4636)). - otlp-http-exporter: set default value for param `timeout_sec` in `_export` method ([#&#8203;4691](https://github.com/open-telemetry/opentelemetry-python/pull/4691)) - Update OTLP gRPC/HTTP exporters: calling shutdown will now interrupt exporters that are sleeping before a retry attempt, and cause them to return failure immediately. Update BatchSpan/LogRecordProcessors: shutdown will now complete after 30 seconds of trying to finish exporting any buffered telemetry, instead of continuing to export until all telemetry was exported. ([#&#8203;4638](https://github.com/open-telemetry/opentelemetry-python/pull/4638)). ### [`v1.35.0`](https://github.com/open-telemetry/opentelemetry-python/blob/HEAD/CHANGELOG.md#Version-1350056b0-2025-07-11) [Compare Source](https://github.com/open-telemetry/opentelemetry-python/compare/v1.34.1...v1.35.0) - Update OTLP proto to v1.7 [#&#8203;4645](https://github.com/open-telemetry/opentelemetry-python/pull/4645). - Add `event_name` as a top level field in the `LogRecord`. Events are now simply logs with the `event_name` field set, the logs SDK should be used to emit events ([#&#8203;4652](https://github.com/open-telemetry/opentelemetry-python/pull/4652)). - Update OTLP gRPC/HTTP exporters: the export timeout is now inclusive of all retries and backoffs. A +/-20% jitter was added to all backoffs. A pointless 32 second sleep that occurred after all retries had completed/failed was removed. ([#&#8203;4564](https://github.com/open-telemetry/opentelemetry-python/pull/4564)). - Update ConsoleLogExporter.export to handle LogRecord's containing bytes type in the body ([#&#8203;4614](https://github.com/open-telemetry/opentelemetry-python/pull/4614/)). - opentelemetry-sdk: Fix invalid `type: ignore` that causes mypy to ignore the whole file ([#&#8203;4618](https://github.com/open-telemetry/opentelemetry-python/pull/4618)) - Add `span_exporter` property back to `BatchSpanProcessor` class ([#&#8203;4621](https://github.com/open-telemetry/opentelemetry-python/pull/4621)) - Fix license field in pyproject.toml files ([#&#8203;4625](https://github.com/open-telemetry/opentelemetry-python/pull/4625)) - Update logger level to NOTSET in logs example ([#&#8203;4637](https://github.com/open-telemetry/opentelemetry-python/pull/4637)) - Logging API accepts optional `context`; deprecates `trace_id`, `span_id`, `trace_flags`. ([#&#8203;4597](https://github.com/open-telemetry/opentelemetry-python/pull/4597)) and ([#&#8203;4668](https://github.com/open-telemetry/opentelemetry-python/pull/4668)) - sdk: use context instead of trace\_id,span\_id for initializing LogRecord ([#&#8203;4653](https://github.com/open-telemetry/opentelemetry-python/pull/4653)) - Rename LogRecordProcessor.emit to on\_emit ([#&#8203;4648](https://github.com/open-telemetry/opentelemetry-python/pull/4648)) - Logging API hide std\_to\_otel function to convert python logging severity to otel severity ([#&#8203;4649](https://github.com/open-telemetry/opentelemetry-python/pull/4649)) - proto: relax protobuf version requirement to support v6 ([#&#8203;4620](https://github.com/open-telemetry/opentelemetry-python/pull/4620)) - Bump semantic-conventions to 1.36.0 ([#&#8203;4669](https://github.com/open-telemetry/opentelemetry-python/pull/4669)) - Set expected User-Agent in HTTP headers for grpc OTLP exporter ([#&#8203;4658](https://github.com/open-telemetry/opentelemetry-python/pull/4658)) ### [`v1.34.1`](https://github.com/open-telemetry/opentelemetry-python/releases/tag/v1.34.1): Version 1.34.1/0.55b1 [Compare Source](https://github.com/open-telemetry/opentelemetry-python/compare/v1.34.0...v1.34.1) This is a patch release on the previous 1.34.0/0.55b0 release, fixing the issue(s) below. - opentelemetry-sdk: Fix invalid `type: ignore` that causes mypy to ignore the whole file ([#&#8203;4618](https://github.com/open-telemetry/opentelemetry-python/pull/4618)) - Add `span_exporter` property back to `BatchSpanProcessor` class ([#&#8203;4621](https://github.com/open-telemetry/opentelemetry-python/pull/4621)) ### [`v1.34.0`](https://github.com/open-telemetry/opentelemetry-python/blob/HEAD/CHANGELOG.md#Version-1340055b0-2025-06-04) [Compare Source](https://github.com/open-telemetry/opentelemetry-python/compare/v1.33.1...v1.34.0) - typecheck: add sdk/resources and drop mypy ([#&#8203;4578](https://github.com/open-telemetry/opentelemetry-python/pull/4578)) - Use PEP702 for marking deprecations ([#&#8203;4522](https://github.com/open-telemetry/opentelemetry-python/pull/4522)) - Refactor `BatchLogRecordProcessor` and `BatchSpanProcessor` to simplify code and make the control flow more clear ([#&#8203;4562](https://github.com/open-telemetry/opentelemetry-python/pull/4562/) [#&#8203;4535](https://github.com/open-telemetry/opentelemetry-python/pull/4535), and [#&#8203;4580](https://github.com/open-telemetry/opentelemetry-python/pull/4580)). - Remove log messages from `BatchLogRecordProcessor.emit`, this caused the program to crash at shutdown with a max recursion error ([#&#8203;4586](https://github.com/open-telemetry/opentelemetry-python/pull/4586)). - Configurable max retry timeout for grpc exporter ([#&#8203;4333](https://github.com/open-telemetry/opentelemetry-python/pull/4333)) - opentelemetry-api: allow importlib-metadata 8.7.0 ([#&#8203;4593](https://github.com/open-telemetry/opentelemetry-python/pull/4593)) - opentelemetry-test-utils: assert explicit bucket boundaries in histogram metrics ([#&#8203;4595](https://github.com/open-telemetry/opentelemetry-python/pull/4595)) - Bump semantic conventions to 1.34.0 ([#&#8203;4599](https://github.com/open-telemetry/opentelemetry-python/pull/4599)) - Drop support for Python 3.8 ([#&#8203;4520](https://github.com/open-telemetry/opentelemetry-python/pull/4520)) ### [`v1.33.1`](https://github.com/open-telemetry/opentelemetry-python/releases/tag/v1.33.1): Version 1.33.1/0.54b1 [Compare Source](https://github.com/open-telemetry/opentelemetry-python/compare/v1.33.0...v1.33.1) This is a patch release on the previous 1.33.0/0.54b0 release, fixing the issue(s) below. - Remove log messages from `BatchLogRecordProcessor.emit`, this caused the program to crash at shutdown with a max recursion error ([#&#8203;4586](https://github.com/open-telemetry/opentelemetry-python/pull/4586)). ### [`v1.33.0`](https://github.com/open-telemetry/opentelemetry-python/blob/HEAD/CHANGELOG.md#Version-1330054b0-2025-05-09) [Compare Source](https://github.com/open-telemetry/opentelemetry-python/compare/v1.32.1...v1.33.0) - Fix intermittent `Connection aborted` error when using otlp/http exporters ([#&#8203;4477](https://github.com/open-telemetry/opentelemetry-python/pull/4477)) - opentelemetry-sdk: use stable code attributes: `code.function` -> `code.function.name`, `code.lineno` -> `code.line.number`, `code.filepath` -> `code.file.path` ([#&#8203;4508](https://github.com/open-telemetry/opentelemetry-python/pull/4508)) - Fix serialization of extended attributes for logs signal ([#&#8203;4342](https://github.com/open-telemetry/opentelemetry-python/pull/4342)) - Handle OTEL\_PROPAGATORS contains None ([#&#8203;4553](https://github.com/open-telemetry/opentelemetry-python/pull/4553)) - docs: updated and added to the metrics and log examples ([#&#8203;4559](https://github.com/open-telemetry/opentelemetry-python/pull/4559)) - Bump semantic conventions to 1.33.0 ([#&#8203;4567](https://github.com/open-telemetry/opentelemetry-python/pull/4567)) ### [`v1.32.1`](https://github.com/open-telemetry/opentelemetry-python/releases/tag/v1.32.1): Version 1.32.1/0.53b1 [Compare Source](https://github.com/open-telemetry/opentelemetry-python/compare/v1.32.0...v1.32.1) This is a patch release on the previous 1.32.0/0.53b0 release, fixing the issue(s) below. ### [`v1.32.0`](https://github.com/open-telemetry/opentelemetry-python/blob/HEAD/CHANGELOG.md#Version-1320053b0-2025-04-10) [Compare Source](https://github.com/open-telemetry/opentelemetry-python/compare/v1.31.1...v1.32.0) - Fix user agent in OTLP HTTP metrics exporter ([#&#8203;4475](https://github.com/open-telemetry/opentelemetry-python/pull/4475)) - Improve performance of baggage operations ([#&#8203;4466](https://github.com/open-telemetry/opentelemetry-python/pull/4466)) - sdk: remove duplicated constant definitions for `environment_variables` ([#&#8203;4491](https://github.com/open-telemetry/opentelemetry-python/pull/4491)) - api: Revert record `BaseException` change in `trace_api.use_span()` ([#&#8203;4494](https://github.com/open-telemetry/opentelemetry-python/pull/4494)) - Improve CI by cancelling stale runs and setting timeouts ([#&#8203;4498](https://github.com/open-telemetry/opentelemetry-python/pull/4498)) - Patch logging.basicConfig so OTel logs don't cause console logs to disappear ([#&#8203;4436](https://github.com/open-telemetry/opentelemetry-python/pull/4436)) - Bump semantic conventions to 1.32.0 ([#&#8203;4530](https://github.com/open-telemetry/opentelemetry-python/pull/4530)) - Fix ExplicitBucketHistogramAggregation to handle multiple explicit bucket boundaries advisories ([#&#8203;4521](https://github.com/open-telemetry/opentelemetry-python/pull/4521)) - opentelemetry-sdk: Fix serialization of objects in log handler ([#&#8203;4528](https://github.com/open-telemetry/opentelemetry-python/pull/4528)) ### [`v1.31.1`](https://github.com/open-telemetry/opentelemetry-python/releases/tag/v1.31.1): Version 1.31.1/0.52b1 [Compare Source](https://github.com/open-telemetry/opentelemetry-python/compare/v1.31.0...v1.31.1) This is a patch release on the previous 1.31.0/0.52b0 release, fixing the issue(s) below. - api: Revert record `BaseException` change in `trace_api.use_span()` ([#&#8203;4494](https://github.com/open-telemetry/opentelemetry-python/pull/4494)) ### [`v1.31.0`](https://github.com/open-telemetry/opentelemetry-python/blob/HEAD/CHANGELOG.md#Version-1310052b0-2025-03-12) [Compare Source](https://github.com/open-telemetry/opentelemetry-python/compare/v1.30.0...v1.31.0) - semantic-conventions: Bump to 1.31.0 ([#&#8203;4471](https://github.com/open-telemetry/opentelemetry-python/pull/4471)) - Add type annotations to context's attach & detach ([#&#8203;4346](https://github.com/open-telemetry/opentelemetry-python/pull/4346)) - Fix OTLP encoders missing instrumentation scope schema url and attributes ([#&#8203;4359](https://github.com/open-telemetry/opentelemetry-python/pull/4359)) - prometheus-exporter: fix labels out of place for data points with different attribute sets ([#&#8203;4413](https://github.com/open-telemetry/opentelemetry-python/pull/4413)) - Type indent parameter in to\_json ([#&#8203;4402](https://github.com/open-telemetry/opentelemetry-python/pull/4402)) - Tolerates exceptions when loading resource detectors via `OTEL_EXPERIMENTAL_RESOURCE_DETECTORS` ([#&#8203;4373](https://github.com/open-telemetry/opentelemetry-python/pull/4373)) - Disconnect gRPC client stub when shutting down `OTLPSpanExporter` ([#&#8203;4370](https://github.com/open-telemetry/opentelemetry-python/pull/4370)) - opentelemetry-sdk: fix OTLP exporting of Histograms with explicit buckets advisory ([#&#8203;4434](https://github.com/open-telemetry/opentelemetry-python/pull/4434)) - opentelemetry-exporter-otlp-proto-grpc: better dependency version range for Python 3.13 ([#&#8203;4444](https://github.com/open-telemetry/opentelemetry-python/pull/4444)) - opentelemetry-exporter-opencensus: better dependency version range for Python 3.13 ([#&#8203;4444](https://github.com/open-telemetry/opentelemetry-python/pull/4444)) - Updated `tracecontext-integration-test` gitref to `d782773b2cf2fa4afd6a80a93b289d8a74ca894d` ([#&#8203;4448](https://github.com/open-telemetry/opentelemetry-python/pull/4448)) - Make `trace_api.use_span()` record `BaseException` as well as `Exception` ([#&#8203;4406](https://github.com/open-telemetry/opentelemetry-python/pull/4406)) - Fix env var error message for TraceLimits/SpanLimits ([#&#8203;4458](https://github.com/open-telemetry/opentelemetry-python/pull/4458)) - pylint-ci updated python version to 3.13 ([#&#8203;4450](https://github.com/open-telemetry/opentelemetry-python/pull/4450)) - Fix memory leak in Log & Trace exporter ([#&#8203;4449](https://github.com/open-telemetry/opentelemetry-python/pull/4449)) ### [`v1.30.0`](https://github.com/open-telemetry/opentelemetry-python/blob/HEAD/CHANGELOG.md#Version-1300051b0-2025-02-03) [Compare Source](https://github.com/open-telemetry/opentelemetry-python/compare/v1.29.0...v1.30.0) - Always setup logs sdk, OTEL\_PYTHON\_LOGGING\_AUTO\_INSTRUMENTATION\_ENABLED only controls python `logging` module handler setup ([#&#8203;4340](https://github.com/open-telemetry/opentelemetry-python/pull/4340)) - Add `attributes` field in `metrics.get_meter` wrapper function ([#&#8203;4364](https://github.com/open-telemetry/opentelemetry-python/pull/4364)) - Add Python 3.13 support ([#&#8203;4353](https://github.com/open-telemetry/opentelemetry-python/pull/4353)) - sdk: don't log or print warnings when the SDK has been disabled ([#&#8203;4371](https://github.com/open-telemetry/opentelemetry-python/pull/4371)) - Fix span context manager typing by using ParamSpec from typing\_extensions ([#&#8203;4389](https://github.com/open-telemetry/opentelemetry-python/pull/4389)) - Fix serialization of None values in logs body to match 1.31.0+ data model ([#&#8203;4400](https://github.com/open-telemetry/opentelemetry-python/pull/4400)) - \[BREAKING] semantic-conventions: Remove `opentelemetry.semconv.attributes.network_attributes.NETWORK_INTERFACE_NAME` introduced by mistake in the wrong module. ([#&#8203;4391](https://github.com/open-telemetry/opentelemetry-python/pull/4391)) - Add support for explicit bucket boundaries advisory for Histograms ([#&#8203;4361](https://github.com/open-telemetry/opentelemetry-python/pull/4361)) - semantic-conventions: Bump to 1.30.0 ([#&#8203;4337](https://github.com/open-telemetry/opentelemetry-python/pull/4397)) ### [`v1.29.0`](https://github.com/open-telemetry/opentelemetry-python/blob/HEAD/CHANGELOG.md#Version-1290050b0-2024-12-11) [Compare Source](https://github.com/open-telemetry/opentelemetry-python/compare/v1.28.2...v1.29.0) - Fix crash exporting a log record with None body ([#&#8203;4276](https://github.com/open-telemetry/opentelemetry-python/pull/4276)) - Fix metrics export with exemplar and no context and filtering observable instruments ([#&#8203;4251](https://github.com/open-telemetry/opentelemetry-python/pull/4251)) - Fix recursion error with sdk disabled and handler added to root logger ([#&#8203;4259](https://github.com/open-telemetry/opentelemetry-python/pull/4259)) - sdk: setup EventLogger when OTEL\_PYTHON\_LOGGING\_AUTO\_INSTRUMENTATION\_ENABLED is set ([#&#8203;4270](https://github.com/open-telemetry/opentelemetry-python/pull/4270)) - api: fix logging of duplicate EventLogger setup warning ([#&#8203;4299](https://github.com/open-telemetry/opentelemetry-python/pull/4299)) - sdk: fix setting of process owner in ProcessResourceDetector ([#&#8203;4311](https://github.com/open-telemetry/opentelemetry-python/pull/4311)) - sdk: fix serialization of logs severity\_number field to int ([#&#8203;4324](https://github.com/open-telemetry/opentelemetry-python/pull/4324)) - Remove `TestBase.assertEqualSpanInstrumentationInfo` method, use `assertEqualSpanInstrumentationScope` instead ([#&#8203;4310](https://github.com/open-telemetry/opentelemetry-python/pull/4310)) - sdk: instantiate lazily `ExemplarBucket`s in `ExemplarReservoir`s ([#&#8203;4260](https://github.com/open-telemetry/opentelemetry-python/pull/4260)) - semantic-conventions: Bump to 1.29.0 ([#&#8203;4337](https://github.com/open-telemetry/opentelemetry-python/pull/4337)) ### [`v1.28.2`](https://github.com/open-telemetry/opentelemetry-python/releases/tag/v1.28.2): Version 1.28.2/0.49b2 [Compare Source](https://github.com/open-telemetry/opentelemetry-python/compare/v1.28.1...v1.28.2) This is a patch release on the previous 1.28.1/0.49b1 release, fixing the issue(s) below. - Fix crash exporting a log record with None body ([#&#8203;4276](https://github.com/open-telemetry/opentelemetry-python/pull/4276)) - sdk: setup EventLogger when OTEL\_PYTHON\_LOGGING\_AUTO\_INSTRUMENTATION\_ENABLED is set ([#&#8203;4270](https://github.com/open-telemetry/opentelemetry-python/pull/4270)) ### [`v1.28.1`](https://github.com/open-telemetry/opentelemetry-python/releases/tag/v1.28.1): Version 1.28.1/0.49b1 [Compare Source](https://github.com/open-telemetry/opentelemetry-python/compare/v1.28.0...v1.28.1) This is a patch release on the previous 1.28.0/0.49b0 release, fixing the issue(s) below. - Fix metrics export with exemplar and no context and filtering observable instruments ([#&#8203;4251](https://github.com/open-telemetry/opentelemetry-python/pull/4251)) - Fix recursion error with sdk disabled and handler added to root logger ([#&#8203;4259](https://github.com/open-telemetry/opentelemetry-python/pull/4259)) ### [`v1.28.0`](https://github.com/open-telemetry/opentelemetry-python/blob/HEAD/CHANGELOG.md#Version-1280049b0-2024-11-05) [Compare Source](https://github.com/open-telemetry/opentelemetry-python/compare/v1.27.0...v1.28.0) - Removed superfluous py.typed markers and added them where they were missing ([#&#8203;4172](https://github.com/open-telemetry/opentelemetry-python/pull/4172)) - Include metric info in encoding exceptions ([#&#8203;4154](https://github.com/open-telemetry/opentelemetry-python/pull/4154)) - sdk: Add support for log formatting ([#&#8203;4137](https://github.com/open-telemetry/opentelemetry-python/pull/4166)) - sdk: Add Host resource detector ([#&#8203;4182](https://github.com/open-telemetry/opentelemetry-python/pull/4182)) - sdk: Implementation of exemplars ([#&#8203;4094](https://github.com/open-telemetry/opentelemetry-python/pull/4094)) - Implement events sdk ([#&#8203;4176](https://github.com/open-telemetry/opentelemetry-python/pull/4176)) - Update semantic conventions to version 1.28.0 ([#&#8203;4218](https://github.com/open-telemetry/opentelemetry-python/pull/4218)) - Add support to protobuf 5+ and drop support to protobuf 3 and 4 ([#&#8203;4206](https://github.com/open-telemetry/opentelemetry-python/pull/4206)) - Update environment variable descriptions to match signal ([#&#8203;4222](https://github.com/open-telemetry/opentelemetry-python/pull/4222)) - Record logger name as the instrumentation scope name ([#&#8203;4208](https://github.com/open-telemetry/opentelemetry-python/pull/4208)) - Fix memory leak in exporter and reader ([#&#8203;4224](https://github.com/open-telemetry/opentelemetry-python/pull/4224)) - Drop `OTEL_PYTHON_EXPERIMENTAL_DISABLE_PROMETHEUS_UNIT_NORMALIZATION` environment variable ([#&#8203;4217](https://github.com/open-telemetry/opentelemetry-python/pull/4217)) - Improve compatibility with other logging libraries that override `LogRecord.getMessage()` in order to customize message formatting ([#&#8203;4216](https://github.com/open-telemetry/opentelemetry-python/pull/4216)) ### [`v1.27.0`](https://github.com/open-telemetry/opentelemetry-python/blob/HEAD/CHANGELOG.md#Version-1270048b0-2024-08-28) [Compare Source](https://github.com/open-telemetry/opentelemetry-python/compare/v1.26.0...v1.27.0) - Implementation of Events API ([#&#8203;4054](https://github.com/open-telemetry/opentelemetry-python/pull/4054)) - Make log sdk add `exception.message` to logRecord for exceptions whose argument is an exception not a string message ([#&#8203;4122](https://github.com/open-telemetry/opentelemetry-python/pull/4122)) - Fix use of `link.attributes.dropped`, which may not exist ([#&#8203;4119](https://github.com/open-telemetry/opentelemetry-python/pull/4119)) - Running mypy on SDK resources ([#&#8203;4053](https://github.com/open-telemetry/opentelemetry-python/pull/4053)) - Added py.typed file to top-level module ([#&#8203;4084](https://github.com/open-telemetry/opentelemetry-python/pull/4084)) - Drop Final annotation from Enum in semantic conventions ([#&#8203;4085](https://github.com/open-telemetry/opentelemetry-python/pull/4085)) - Update log export example to not use root logger ([#&#8203;4090](https://github.com/open-telemetry/opentelemetry-python/pull/4090)) - sdk: Add OS resource detector ([#&#8203;3992](https://github.com/open-telemetry/opentelemetry-python/pull/3992)) - sdk: Accept non URL-encoded headers in `OTEL_EXPORTER_OTLP_*HEADERS` to match other languages SDKs ([#&#8203;4103](https://github.com/open-telemetry/opentelemetry-python/pull/4103)) - Update semantic conventions to version 1.27.0 ([#&#8203;4104](https://github.com/open-telemetry/opentelemetry-python/pull/4104)) - Add support to type bytes for OTLP AnyValue ([#&#8203;4128](https://github.com/open-telemetry/opentelemetry-python/pull/4128)) - Export ExponentialHistogram and ExponentialHistogramDataPoint ([#&#8203;4134](https://github.com/open-telemetry/opentelemetry-python/pull/4134)) - Implement Client Key and Certificate File Support for All OTLP Exporters ([#&#8203;4116](https://github.com/open-telemetry/opentelemetry-python/pull/4116)) - Remove `_start_time_unix_nano` attribute from `_ViewInstrumentMatch` in favor of using `time_ns()` at the moment when the aggregation object is created ([#&#8203;4137](https://github.com/open-telemetry/opentelemetry-python/pull/4137)) ### [`v1.26.0`](https://github.com/open-telemetry/opentelemetry-python/blob/HEAD/CHANGELOG.md#Version-1260047b0-2024-07-25) [Compare Source](https://github.com/open-telemetry/opentelemetry-python/compare/v1.25.0...v1.26.0) - Standardizing timeout calculation in measurement consumer collect to nanoseconds ([#&#8203;4074](https://github.com/open-telemetry/opentelemetry-python/pull/4074)) - optional scope attributes for logger creation ([#&#8203;4035](https://github.com/open-telemetry/opentelemetry-python/pull/4035)) - optional scope attribute for tracer creation ([#&#8203;4028](https://github.com/open-telemetry/opentelemetry-python/pull/4028)) - OTLP exporter is encoding invalid span/trace IDs in the logs fix ([#&#8203;4006](https://github.com/open-telemetry/opentelemetry-python/pull/4006)) - Update sdk process resource detector `process.command_args` attribute to also include the executable itself ([#&#8203;4032](https://github.com/open-telemetry/opentelemetry-python/pull/4032)) - Fix `start_time_unix_nano` for delta collection for explicit bucket histogram aggregation ([#&#8203;4009](https://github.com/open-telemetry/opentelemetry-python/pull/4009)) - Fix `start_time_unix_nano` for delta collection for sum aggregation ([#&#8203;4011](https://github.com/open-telemetry/opentelemetry-python/pull/4011)) - Update opentracing and opencesus docs examples to not use JaegerExporter ([#&#8203;4023](https://github.com/open-telemetry/opentelemetry-python/pull/4023)) - Do not execute Flask Tests in debug mode ([#&#8203;3956](https://github.com/open-telemetry/opentelemetry-python/pull/3956)) - When encountering an error encoding metric attributes in the OTLP exporter, log the key that had an error. ([#&#8203;3838](https://github.com/open-telemetry/opentelemetry-python/pull/3838)) - Fix `ExponentialHistogramAggregation` ([#&#8203;3978](https://github.com/open-telemetry/opentelemetry-python/pull/3978)) - Log a warning when a `LogRecord` in `sdk/log` has dropped attributes due to reaching limits ([#&#8203;3946](https://github.com/open-telemetry/opentelemetry-python/pull/3946)) - Fix RandomIdGenerator can generate invalid Span/Trace Ids ([#&#8203;3949](https://github.com/open-telemetry/opentelemetry-python/pull/3949)) - Add Python 3.12 to tox ([#&#8203;3616](https://github.com/open-telemetry/opentelemetry-python/pull/3616)) - Improve resource field structure for LogRecords ([#&#8203;3972](https://github.com/open-telemetry/opentelemetry-python/pull/3972)) - Update Semantic Conventions code generation scripts: - fix namespace exclusion that resulted in dropping `os` and `net` namespaces. - add `Final` decorator to constants to prevent collisions - enable mypy and fix detected issues - allow to drop specific attributes in preparation for Semantic Conventions v1.26.0 ([#&#8203;3973](https://github.com/open-telemetry/opentelemetry-python/pull/3966)) - Update semantic conventions to version 1.26.0. ([#&#8203;3964](https://github.com/open-telemetry/opentelemetry-python/pull/3964)) - Use semconv exception attributes for record exceptions in spans ([#&#8203;3979](https://github.com/open-telemetry/opentelemetry-python/pull/3979)) - Fix \_encode\_events assumes events.attributes.dropped exists ([#&#8203;3965](https://github.com/open-telemetry/opentelemetry-python/pull/3965)) - Validate links at span creation ([#&#8203;3991](https://github.com/open-telemetry/opentelemetry-python/pull/3991)) - Add attributes field in `MeterProvider.get_meter` and `InstrumentationScope` ([#&#8203;4015](https://github.com/open-telemetry/opentelemetry-python/pull/4015)) - Fix inaccessible `SCHEMA_URL` constants in `opentelemetry-semantic-conventions` ([#&#8203;4069](https://github.com/open-telemetry/opentelemetry-python/pull/4069)) ### [`v1.25.0`](https://github.com/open-telemetry/opentelemetry-python/blob/HEAD/CHANGELOG.md#Version-1250046b0-2024-05-30) [Compare Source](https://github.com/open-telemetry/opentelemetry-python/compare/v1.24.0...v1.25.0) - Fix class BoundedAttributes to have RLock rather than Lock ([#&#8203;3859](https://github.com/open-telemetry/opentelemetry-python/pull/3859)) - Remove thread lock by loading RuntimeContext explicitly. ([#&#8203;3763](https://github.com/open-telemetry/opentelemetry-python/pull/3763)) - Update proto version to v1.2.0 ([#&#8203;3844](https://github.com/open-telemetry/opentelemetry-python/pull/3844)) - Add to\_json method to ExponentialHistogram ([#&#8203;3780](https://github.com/open-telemetry/opentelemetry-python/pull/3780)) - Bump mypy to 1.9.0 ([#&#8203;3795](https://github.com/open-telemetry/opentelemetry-python/pull/3795)) - Fix exponential histograms ([#&#8203;3798](https://github.com/open-telemetry/opentelemetry-python/pull/3798)) - Fix otlp exporter to export log\_record.observed\_timestamp ([#&#8203;3785](https://github.com/open-telemetry/opentelemetry-python/pull/3785)) - Add capture the fully qualified type name for raised exceptions in spans ([#&#8203;3837](https://github.com/open-telemetry/opentelemetry-python/pull/3837)) - Prometheus exporter sort label keys to prevent duplicate metrics when user input changes order ([#&#8203;3698](https://github.com/open-telemetry/opentelemetry-python/pull/3698)) - Update semantic conventions to version 1.25.0. Refactor semantic-convention structure: - `SpanAttributes`, `ResourceAttributes`, and `MetricInstruments` are deprecated. - Attribute and metric definitions are now grouped by the namespace. - Stable attributes and metrics are moved to `opentelemetry.semconv.attributes` and `opentelemetry.semconv.metrics` modules. - Stable and experimental attributes and metrics are defined under `opentelemetry.semconv._incubating` import path. ([#&#8203;3586](https://github.com/open-telemetry/opentelemetry-python/pull/3586)) - Rename test objects to avoid pytest warnings (\[[#&#8203;3823](https://github.com/open-telemetry/opentelemetry-python/issues/3823)] ([#&#8203;3823](https://github.com/open-telemetry/opentelemetry-python/pull/3823))) - Add span flags to OTLP spans and links ([#&#8203;3881](https://github.com/open-telemetry/opentelemetry-python/pull/3881)) - Record links with invalid SpanContext if either attributes or TraceState are not empty ([#&#8203;3917](https://github.com/open-telemetry/opentelemetry-python/pull/3917/)) - Add OpenTelemetry trove classifiers to PyPI packages (\[[#&#8203;3913](https://github.com/open-telemetry/opentelemetry-python/issues/3913)] ([#&#8203;3913](https://github.com/open-telemetry/opentelemetry-python/pull/3913))) - Fix prometheus metric name and unit conversion ([#&#8203;3924](https://github.com/open-telemetry/opentelemetry-python/pull/3924)) - this is a breaking change to prometheus metric names so they comply with the [specification](https://github.com/open-telemetry/opentelemetry-specification/blob/v1.33.0/specification/compatibility/prometheus_and_openmetrics.md#otlp-metric-points-to-prometheus). - you can temporarily opt-out of the unit normalization by setting the environment variable `OTEL_PYTHON_EXPERIMENTAL_DISABLE_PROMETHEUS_UNIT_NORMALIZATION=true` - common unit abbreviations are converted to Prometheus conventions (`s` -> `seconds`), following the [collector's implementation](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/c0b51136575aa7ba89326d18edb4549e7e1bbdb9/pkg/translator/prometheus/normalize_name.go#L108) - repeated `_` are replaced with a single `_` - unit annotations (enclosed in curly braces like `{requests}`) are stripped away - units with slash are converted e.g. `m/s` -> `meters_per_second`. - The exporter's API is not changed - Add parameters for Distros and configurators to configure autoinstrumentation in addition to existing environment variables. ([#&#8203;3864](https://github.com/open-telemetry/opentelemetry-python/pull/3864)) </details> --- ### Configuration 📅 **Schedule**: Branch creation - Only on Sunday and Saturday ( * * * * 0,6 ) in timezone America/New_York, Automerge - Only on Sunday and Saturday ( * * * * 0,6 ) in timezone America/New_York. 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My40Ni4zIiwidXBkYXRlZEluVmVyIjoiNDMuNDYuMyIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->
chrisw-b closed this pull request 2026-03-07 08:22:47 -05:00
Author
Collaborator

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update (==1.40.0). You will get a PR once a newer version is released. To ignore this dependency forever, add it to the ignoreDeps array of your Renovate config.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.

### Renovate Ignore Notification Because you closed this PR without merging, Renovate will ignore this update (`==1.40.0`). You will get a PR once a newer version is released. To ignore this dependency forever, add it to the `ignoreDeps` array of your Renovate config. If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.
Commenting is not possible because the repository is archived.
No reviewers
No labels
No milestone
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
chrisw-b/bkwrm-container!197
No description provided.