Skip to content

Releases: open-telemetry/opentelemetry-python-contrib

Version 1.40.0/0.61b0

04 Mar 14:20
3be9ca8

Choose a tag to compare

Added

  • Add Python 3.14 support (#4193)
  • opentelemetry-instrumentation-asgi: Add exemplars for http.server.request.duration and http.server.duration metrics (#3739)
  • opentelemetry-instrumentation-wsgi: Add exemplars for http.server.request.duration and http.server.duration metrics (#3739)
  • opentelemetry-instrumentation-aiohttp-client: add ability to capture custom headers (#3988)
  • opentelemetry-instrumentation-requests: add ability to capture custom headers (#3987)
  • opentelemetry-instrumentation-aiohttp-client: add typechecking for aiohttp-client instrumentation (#4006)
  • opentelemetry-instrumentation-flask: Add support for 3.1+ streaming responses (#3938)
  • opentelemetry-instrumentation-aiohttp-server: Support passing TracerProvider when instrumenting. (#3819)
  • opentelemetry-instrumentation-system-metrics: Add support for the OTEL_PYTHON_SYSTEM_METRICS_EXCLUDED_METRICS environment variable (#3959)
  • opentelemetry-instrumentation-httpx: add ability to capture custom headers (#4047)
  • opentelemetry-instrumentation-urllib3: add ability to capture custom headers (#4050)
  • opentelemetry-instrumentation-urllib: add ability to capture custom headers (#4051)
  • opentelemetry-instrumentation-confluent-kafka: Increase confluent-kafka upper bound to support newer versions (2.13.0) (#4099)
  • opentelemetry-instrumentation-aiohttp-server Implement new semantic convention opt-in migration (#3980)
  • opentelemetry-instrumentation-falcon: pass request attributes at span creation (#4119)
  • opentelemetry-instrumentation: add database stability attribute setters in _semconv utilities (#4108)
  • opentelemetry-instrumentation-aiohttp-server: pass request attributes at span creation (#4118)
  • opentelemetry-instrumentation-tornado: Implement new semantic convention opt-in migration (#3993)
  • opentelemetry-instrumentation-tornado: pass request attributes at span creation (#4140)
  • opentelemetry-instrumentation-pyramid Implement new semantic convention opt-in migration (#3982)
  • opentelemetry-instrumentation-tortoiseorm Add unit tests for Tortoise ORM instrumentation (#4141)
  • opentelemetry-instrumentation-pyramid: pass request attributes at span creation (#4139)
  • opentelemetry-instrumentation-logging: Move there the SDK LoggingHandler (#4210)
  • Add stale PR GitHub Action (#4220)

Fixed

  • opentelemetry-instrumentation-flask: Align http.server.active_requests initialization with semantic convention helpers to ensure consistent names, units, and descriptions. (#4094)
  • opentelemetry-instrumentation-asyncio: Fix environment variables not appearing in Read the Docs documentation (#4256)
  • opentelemetry-instrumentation-mysql: Refactor MySQL integration test mocks to use concrete DBAPI connection attributes, reducing noisy attribute type warnings. (#4116)
  • opentelemetry-instrumentation-cassandra: Use _instruments_any instead of _instruments for driver dependencies so that having either cassandra-driver or scylla-driver installed is sufficient (#4182)
  • opentelemetry-instrumentation-asyncpg: Hydrate span attributes before creation so samplers can filter on database details (#3841)
  • opentelemetry-instrumentation-django: Fix exemplars generation for http.server.(request.)duration (#3945)
  • opentelemetry-util-http, opentelemetry-instrumentation-requests, opentelemetry-instrumentation-wsgi, opentelemetry-instrumentation-asgi: normalize byte-valued user-agent headers before detecting synthetic sources so attributes are recorded reliably. (#4001)
  • opentelemetry-instrumentation-psycopg: Fix instrument_connection method to use _new_cursor_async_factory on async connections. (#3956)
  • opentelemetry-instrumentation-dbapi: Replace SpanAttributes with semconv constants where applicable (#4058)
  • opentelemetry-instrumentation-django: Replace SpanAttributes with semconv constants where applicable (#4059)
  • opentelemetry-instrumentation-botocore: Replace SpanAttributes with semconv constants where applicable (#4063)
  • opentelemetry-instrumentation-celery: Replace SpanAttributes with semconv constants where applicable (#4056)
  • opentelemetry-instrumentation-confluent-kafka: Replace SpanAttributes with semconv constants where applicable (#4057)
  • opentelemetry-instrumentation-cassandra: Replace SpanAttributes with semconv constants for DB attributes (#4055)
  • opentelemetry-instrumentation-falcon: Replace SpanAttributes with semconv constants (#4066)
  • opentelemetry-instrumentation-pika: Replace SpanAttributes with semconv constants for net attributes (#4068)
  • opentelemetry-instrumentation-mysqlclient: Replace SpanAttributes with semconv constants (#4067)
  • opentelemetry-instrumentation-pymemcache: Remove span attributes pymemcache (#4076)
  • opentelemetry-instrumentation-pymongo: Replace SpanAttributes with semconv constants (#4077)
  • opentelemetry-instrumentation-pymysql: Replace SpanAttributes with semconv constants (#4078)
  • opentelemetry-instrumentation-pyramid: Replace SpanAttributes with semconv constants (#4079)
  • opentelemetry-instrumentation-tortoiseorm: Replace SpanAttributes with semconv constants (#4080)
  • opentelemetry-instrumentation-asgi: Replace SpanAttributes with semconv constants (#4081)
  • opentelemetry-instrumentation-system-metrics: Use proper numeric cpython.gc.generation attribute in CPython metrics, out of spec generation attribute is deprecated and will be removed in the future (#4092)
  • opentelemetry-instrumentation-dbapi: Fix sqlcomment calculation of mysql_client_version field if connection reassignment, with "unknown" fallback (#3729)
  • opentelemetry-instrumentation-confluent-kafka: Fix incorrect number of argument to _inner_wrap_close (#3922)
  • opentelemetry-instrumentation-urllib3: fix multiple arguments error (#4144)
  • opentelemetry-instrumentation-psycopg: Fix instrument of typed psycopg sql (#4078)
  • opentelemetry-instrumentation-aiohttp-server: fix HTTP error inconsistencies ([#4175...
Read more

opentelemetry-util-genai 0.3b0

20 Feb 16:16
5711c8a

Choose a tag to compare

opentelemetry-instrumentation-google-genai 0.7b0

20 Feb 21:56
5f915e7

Choose a tag to compare

  • Fix bug in how tokens are counted when using the streaming generateContent method. (#4152).
  • Add gen_ai.tool.definitions attribute to gen_ai.client.inference.operation.details log event (#4142).
  • Add gen_ai.tool_definitions to completion hook (#4181)

opentelemetry-instrumentation-google-genai 0.6b0

27 Jan 22:15
a6fe8b3

Choose a tag to compare

  • Enable the addition of custom attributes to the generate_content {model.name} span via the Context API. (#3961).
  • Enable the addition of custom attributes to gen_ai.client.inference.operation.details log events (#4103).

opentelemetry-instrumentation-openai-v2 2.3b0

24 Dec 13:21
6733459

Choose a tag to compare

  • Fix AttributeError when handling LegacyAPIResponse (from with_raw_response) (#4017)
  • Add support for chat completions choice count and stop sequences span attributes (#4028)
  • Fix crash with streaming with_raw_response (#4033)
  • Bump to 1.30.0 semconv schema: gen_ai.request.seed instead of gen_ai.openai.request.seed (#4036)

opentelemetry-instrumentation-vertexai 2.2b0

19 Dec 19:10
5d81f09

Choose a tag to compare

  • Fix overwritten log attributes in vertexai instrumentation (#3925)
  • Add the GEN_AI_OUTPUT_TYPE, GEN_AI_REQUEST_CHOICE_COUNT and GEN_AI_REQUEST_SEED sem conv request attributes to events/spans generated in the stable instrumentation. This was added pre sem conv 1.36 so it should be in the stable instrumentation. See (#4011).

Version 1.39.1/0.60b1

11 Dec 13:37
b13d350

Choose a tag to compare

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

Fixed

  • opentelemetry-util-http, opentelemetry-instrumentation-requests, opentelemetry-instrumentation-wsgi, opentelemetry-instrumentation-asgi: normalize byte-valued user-agent headers before detecting synthetic sources so attributes are recorded reliably. (#4001)

opentelemetry-instrumentation-google-genai 0.5b0

11 Dec 14:50
a64bbf4

Choose a tag to compare

  • Ensure log event is written and completion hook is called even when model call results in exception. Put new log event ( gen_ai.client.inference.operation.details) behind the flag OTEL_SEMCONV_STABILITY_OPT_IN=gen_ai_latest_experimental. Ensure same sem conv attributes are on the log and span. Fix an issue where the instrumentation would crash when a pydantic.BaseModel class was passed as the response schema (#3905).
  • Add the GEN_AI_OUTPUT_TYPE sem conv request attributes to events/spans generated in the stable instrumentation. This was added pre sem conv 1.36 so it should be in the stable instrumentation. Fix a bug in how system instructions were recorded in the gen_ai.system.message log event. It will now always be recorded as {"content" : "text of system instructions"}. See (#4011).

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)