Skip to content

Releases: open-telemetry/opentelemetry-python

Version 1.37.0/0.58b0

11 Sep 10:29
bc413fc
Compare
Choose a tag to compare
  • 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)

Version 1.36.0/0.57b0

29 Jul 15:12
1aaa2a2
Compare
Choose a tag to compare
  • 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).

Version 1.35.0/0.56b0

11 Jul 12:23
ad266aa
Compare
Choose a tag to compare
  • 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)

Breaking Changes

We are working on stabilizing the Log signal that would require making deprecations and breaking changes. We will try to reduce the releases that may require an update to your code, especially for instrumentations or for sdk developers.

  • Rename LogRecordProcessor.emit to on_emit (#4648)

Version 1.34.1/0.55b1

10 Jun 08:55
f55810d
Compare
Choose a tag to compare

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)

Version 1.34.0/0.55b0

04 Jun 13:31
74645c0
Compare
Choose a tag to compare
  • typecheck: add sdk/resources and drop mypy (#4578)
  • Refactor BatchLogRecordProcessor to simplify code and make the control flow more clear (#4562 and #4535).
  • 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)

Version 1.33.1/0.54b1

16 May 18:52
acae2c2
Compare
Choose a tag to compare

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).

Version 1.33.0/0.54b0

09 May 14:56
65904db
Compare
Choose a tag to compare
  • 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)

Version 1.32.1/0.53b1

15 Apr 16:02
939378c
Compare
Choose a tag to compare

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

Version 1.32.0/0.53b0

10 Apr 13:10
1f5151c
Compare
Choose a tag to compare
  • 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)

Version 1.31.1/0.52b1

20 Mar 14:44
74509a1
Compare
Choose a tag to compare

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)