Change8

v1.30.0

Breaking Changes
📦 opentelemetry
1 breaking3 features🐛 3 fixes🔧 3 symbols

Summary

This release introduces support for Python 3.13, updates semantic conventions to 1.30.0, and fixes serialization issues for None values in logs. A breaking change involves the removal of a misplaced network attribute constant.

⚠️ Breaking Changes

  • semantic-conventions: The attribute `opentelemetry.semconv.attributes.network_attributes.NETWORK_INTERFACE_NAME` has been removed because it was introduced in the wrong module. Users relying on this specific constant should check the correct location in the updated semantic conventions or use the appropriate constant from the correct module.

Migration Steps

  1. If you were using `opentelemetry.semconv.attributes.network_attributes.NETWORK_INTERFACE_NAME`, locate the correct constant path based on semantic conventions version 1.30.0.

✨ New Features

  • The SDK now always sets up the logs SDK; the `OTEL_PYTHON_LOGGING_AUTO_INSTRUMENTATION_ENABLED` environment variable now only controls the setup of handlers for the standard Python `logging` module.
  • Added support for explicit bucket boundaries advisory for Histograms.
  • Added an `attributes` field to the `metrics.get_meter` wrapper function.

🐛 Bug Fixes

  • Fixed span context manager typing by utilizing `ParamSpec` from `typing_extensions`.
  • Fixed serialization of `None` values in log bodies to align with the data model introduced in versions 1.31.0+.
  • The SDK no longer logs or prints warnings when the SDK has been disabled.

🔧 Affected Symbols

opentelemetry.semconv.attributes.network_attributes.NETWORK_INTERFACE_NAMEmetrics.get_meterspan context manager