Skip to content

Releases: open-telemetry/opentelemetry-python-contrib

Version 1.39.0/0.60b0

03 Dec 13:22
f591f05

Choose a tag to compare

Added

  • opentelemetry-instrumentation-requests, opentelemetry-instrumentation-wsgi, opentelemetry-instrumentation-asgi Detect synthetic sources on requests, ASGI, and WSGI. (#3674)
  • opentelemetry-instrumentation-aiohttp-client: add support for url exclusions via OTEL_PYTHON_EXCLUDED_URLS / OTEL_PYTHON_AIOHTTP_CLIENT_EXCLUDED_URLS (#3850)
  • opentelemetry-instrumentation-httpx: add support for url exclusions via OTEL_PYTHON_EXCLUDED_URLS / OTEL_PYTHON_HTTPX_EXCLUDED_URLS (#3837)
  • opentelemetry-instrumentation-flask: improve readthedocs for sqlcommenter configuration. (#3883)
  • opentelemetry-instrumentation-sqlalchemy: improve readthedocs for sqlcommenter configuration. (#3886)
  • opentelemetry-instrumentation-mysql, opentelemetry-instrumentation-mysqlclient, opentelemetry-instrumentation-pymysql: improve readthedocs for sqlcommenter configuration. (#3885)
  • opentelemetry-instrumentation-django: improve readthedocs for sqlcommenter configuration. (#3884)
  • opentelemetry-instrumentation-aiohttp-server: add support for custom header captures via OTEL_INSTRUMENTATION_HTTP_CAPTURE_HEADERS_SERVER_REQUEST and OTEL_INSTRUMENTATION_HTTP_CAPTURE_HEADERS_SERVER_RESPONSE (#3916)
  • opentelemetry-instrumentation-redis: add support for suppress_instrumentation context manager for both sync and async Redis clients and pipelines
  • opentelemetry-instrumentation-django: improve docs for response_hook with examples of providing attributes from middlewares (#3923)
  • Update for Log SDK breaking changes. Rename InMemoryLogExporter to InMemoryLogRecordExporter in several tests (#3589)
  • opentelemetry-instrumentation: allow to skip all instrumentations loading with a wildcard (#3967)
  • opentelemetry-instrumentation-redis: add missing copyright header for opentelemetry-instrumentation-redis (#3976)

Fixed

  • opentelemetry-instrumentation-botocore: bedrock: Add safety check for bedrock ConverseStream responses (#3990)
  • opentelemetry-instrumentation-botocore: bedrock: only decode JSON input buffer in Anthropic Claude streaming (#3875)
  • opentelemetry-instrumentation-aiohttp-client, opentelemetry-instrumentation-aiohttp-server: Fix readme links and text (#3902)
  • opentelemetry-instrumentation-aws-lambda: Fix ImportError with slash-delimited handler paths (#3894)
  • opentelemetry-exporter-richconsole: Prevent deadlock when parent span is not part of the batch (#3900)
  • opentelemetry-instrumentation-psycopg2, opentelemetry-instrumentation-psycopg: improve readthedocs for sqlcommenter configuration. (#3882)
  • opentelemetry-instrumentation-aiohttp-server: delay initialization of tracer, meter and excluded urls to instrumentation for testability (#3836)
  • Replace Python 3.14-deprecated asyncio.iscoroutinefunction with inspect.iscoroutinefunction. (#3880)
  • opentelemetry-instrumentation-elasticsearch: Enhance elasticsearch query body sanitization (#3919)
  • opentelemetry-instrumentation-pymongo: Fix span error descriptions (#3904)
  • build: bump ruff to 0.14.1 (#3842)
  • opentelemetry-instrumentation-redis: Add default span name for pipeline operations (#3941)
  • opentelemetry-instrumentation-pymongo: Fix invalid mongodb collection attribute type (#3942)
  • opentelemetry-instrumentation-aiohttp-client: Fix metric attribute leakage (#3936)
  • opentelemetry-instrumentation-aiohttp-client: Update instrumentor to respect suppressing http instrumentation (#3957)

opentelemetry-instrumentation-openai-v2 2.2b0

25 Nov 09:40
abbec7c

Choose a tag to compare

  • Fix service tier attribute names: use GEN_AI_OPENAI_REQUEST_SERVICE_TIER for request attributes and GEN_AI_OPENAI_RESPONSE_SERVICE_TIER for response attributes. (#3920)
  • Added support for OpenAI embeddings instrumentation (#3461)
  • Record prompt and completion events regardless of span sampling decision. (#3226)
  • Filter out attributes with the value of NotGiven instances (#3760)
  • Migrate off the deprecated events API to use the logs API (#3625)

Version 1.38.0/0.59b0

16 Oct 08:40
071f686

Choose a tag to compare

Fixed

  • opentelemetry-instrumentation-flask: Do not record http.server.duration metrics for excluded URLs. (#3794)
  • opentelemetry-instrumentation-botocore: migrate off the deprecated events API to use the logs API (#3624)
  • opentelemetry-instrumentation-dbapi: fix crash retrieving libpq version when enabling commenter with psycopg (#3796)
  • opentelemetry-instrumentation-fastapi: Fix handling of APIRoute subclasses (#3681)

Added

  • opentelemetry-instrumentation-botocore: Add support for AWS Secrets Manager semantic convention attribute (#3765)
  • opentelemetry-instrumentation-dbapi: Add support for commenter_options in trace_integration function to control SQLCommenter behavior (#3743)
  • Add rstcheck to pre-commit to stop introducing invalid RST (#3777)
  • opentelemetry-exporter-credential-provider-gcp: create this package which provides support for supplying your machine's Application Default Credentials (https://cloud.google.com/docs/authentication/application-default-credentials) to the OTLP Exporters created automatically by OpenTelemetry Python's auto instrumentation. These credentials authorize OTLP traces to be sent to telemetry.googleapis.com. #3766.
  • opentelemetry-instrumentation-psycopg: Add missing parameter capture_parameters to instrumentor. (#3676)
  • opentelemetry-instrumentation-dbapi: Adds sqlcommenter to documentation. (#3720)

opentelemetry-instrumentation-vertexai 2.1b0

16 Oct 15:26
6f45f83

Choose a tag to compare

  • Update instrumentation to use the latest semantic convention changes made in open-telemetry/semantic-conventions#2179. Now only a single event and span (gen_ai.client.inference.operation.details) are used to capture prompt and response content. These changes are opt-in, users will need to set the environment variable OTEL_SEMCONV_STABILITY_OPT_IN to gen_ai_latest_experimental to see them (#3799) and (#3709). Update instrumentation to call upload hook.
  • Implement uninstrument for opentelemetry-instrumentation-vertexai (#3328)
  • VertexAI support for async calling (#3386) - Migrate off the deprecated events API to use the logs API (#3625) - Update gen_ai_latest_experimental instrumentation to record files being passed to the model (#3840).

opentelemetry-instrumentation-google-genai 0.4b0

16 Oct 15:13
d4a36ea

Choose a tag to compare

  • Implement the new semantic convention changes made in open-telemetry/semantic-conventions#2179. A single event (gen_ai.client.inference.operation.details) is used to capture Chat History. This is opt-in, an environment variable OTEL_SEMCONV_STABILITY_OPT_IN needs to be set to gen_ai_latest_experimental to see them (#3386)
  • Support CompletionHook for upload to cloud storage.

opentelemetry-util-genai 0.2b0

15 Oct 20:07
131f8d1

Choose a tag to compare

opentelemetry-instrumentation-openai-agents-v2 0.1.0

15 Oct 19:05
4cb85db

Choose a tag to compare

  • Initial barebones package skeleton: minimal instrumentor stub, version module, and packaging metadata/entry point. (#3805)
  • Implement OpenAI Agents span processing aligned with GenAI semantic conventions. (#3817)
  • Input and output according to GenAI spec. (#3824)

opentelemetry-util-genai 0.1b0

25 Sep 21:10
7f05245

Choose a tag to compare

  • Add completion hook to genai utils to implement semconv v1.37.

    Includes a hook implementation using fsspec to support uploading to various pluggable backends.

    (#3780) (#3752) (#3759) (#3763)

  • Add a utility to parse the OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT environment variable. Add gen_ai_latest_experimental as a new value to the Sem Conv stability flag (#3716).

Version 1.37.0/0.58b0

11 Sep 11:43
3cb03e9

Choose a tag to compare

Fixed

  • opentelemetry-instrumentation-fastapi: Fix middleware ordering to cover all exception handling use cases. (#3664)
  • opentelemetry-instrumentation-asgi: Make all user hooks failsafe and record exceptions in hooks. (#3664)
  • opentelemetry-instrumentation-fastapi: Fix memory leak in uninstrument_app() by properly removing apps from the tracking set (#3688)
  • opentelemetry-instrumentation-tornado Fix server (request) duration metric calculation (#3679)
  • opentelemetry-instrumentation-tornado: Fix to properly skip all server telemetry when URL excluded. (#3680)
  • opentelemetry-instrumentation: Avoid calls to context.detach with None token. (#3673)
  • opentelemetry-instrumentation-starlette/opentelemetry-instrumentation-fastapi: Fixes a crash when host-based routing is used (#3507)
  • Fix documentation order of sections and headers for Django, Flask, MySQL, mysqlclient, psycopg, psycopg2, pymysql, sqlalchemy instrumentations. (#3719)
  • opentelemetry-instrumentation-asgi Fixed an issue where FastAPI reports IP instead of URL. (#3670)
  • opentelemetry-instrumentation-httpx: fix missing metric response attributes when tracing is disabled (#3615)
  • opentelemetry-instrumentation-fastapi: Don't pass bounded server_request_hook when using FastAPIInstrumentor.instrument() (#3701)

Added

  • opentelemetry-util-genai Add a utility to parse the OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT environment variable. Add gen_ai_latest_experimental as a new value to the Sem Conv stability flag (#3716).
  • opentelemetry-instrumentation-confluent-kafka Add support for confluent-kafka <=2.11.0 (#3685)
  • opentelemetry-instrumentation-system-metrics: Add cpython.gc.collected_objects and cpython.gc.uncollectable_objects metrics (#3666)
  • opentelemetry-sdk-extension-aws Add AWS X-Ray Remote Sampler with initial Rules Poller implementation (#3366)
  • opentelemetry-instrumentation: add support for OTEL_PYTHON_AUTO_INSTRUMENTATION_EXPERIMENTAL_GEVENT_PATCH to inform opentelemetry-instrument about gevent monkeypatching (#3699)
  • opentelemetry-instrumentation: botocore: Add support for AWS Step Functions semantic convention attributes (#3737)
  • opentelemetry-instrumentation-botocore: Add support for SNS semantic convention attribute aws.sns.topic.arn (#3734)
  • opentelemetry-instrumentation: botocore: upgrade moto package from 5.0.9 to 5.1.11 (#3736)

Version 1.36.0/0.57b0

29 Jul 15:43
6f7a052

Choose a tag to compare

Fixed

  • opentelemetry-instrumentation: Fix dependency conflict detection when instrumented packages are not installed by moving check back to before instrumentors are loaded. Add "instruments-any" feature for instrumentations that target multiple packages. (#3610)
  • infra(ci): Fix git pull failures in core contrib test (#3357)

Added

  • opentelemetry-instrumentation-psycopg2 Utilize instruments-any functionality. (#3610)
  • opentelemetry-instrumentation-kafka-python Utilize instruments-any functionality. (#3610)