Skip to content

chore(deps): update dependency opentelemetry-sdk to v1.36.0

This MR contains the following updates:

Package Update Change
opentelemetry-sdk minor ==1.28.2 -> ==1.36.0

Release Notes

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

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)

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

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

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

🔕 Ignore: Close this MR and you won't be reminded about this update again.


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

This MR has been generated by Renovate Bot.

Merge request reports

Loading