Releases: open-telemetry/opentelemetry-python-contrib
Releases · open-telemetry/opentelemetry-python-contrib
Version 1.39.0/0.60b0
Added
opentelemetry-instrumentation-requests,opentelemetry-instrumentation-wsgi,opentelemetry-instrumentation-asgiDetect synthetic sources on requests, ASGI, and WSGI. (#3674)opentelemetry-instrumentation-aiohttp-client: add support for url exclusions viaOTEL_PYTHON_EXCLUDED_URLS/OTEL_PYTHON_AIOHTTP_CLIENT_EXCLUDED_URLS(#3850)opentelemetry-instrumentation-httpx: add support for url exclusions viaOTEL_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 viaOTEL_INSTRUMENTATION_HTTP_CAPTURE_HEADERS_SERVER_REQUESTandOTEL_INSTRUMENTATION_HTTP_CAPTURE_HEADERS_SERVER_RESPONSE(#3916)opentelemetry-instrumentation-redis: add support forsuppress_instrumentationcontext manager for both sync and async Redis clients and pipelinesopentelemetry-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.iscoroutinefunctionwithinspect.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
- Fix service tier attribute names: use
GEN_AI_OPENAI_REQUEST_SERVICE_TIERfor request attributes andGEN_AI_OPENAI_RESPONSE_SERVICE_TIERfor 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
Fixed
opentelemetry-instrumentation-flask: Do not recordhttp.server.durationmetrics 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 forcommenter_optionsintrace_integrationfunction to control SQLCommenter behavior (#3743)- Add
rstcheckto 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 totelemetry.googleapis.com. #3766.opentelemetry-instrumentation-psycopg: Add missing parametercapture_parametersto instrumentor. (#3676)opentelemetry-instrumentation-dbapi: Adds sqlcommenter to documentation. (#3720)
opentelemetry-instrumentation-vertexai 2.1b0
- 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 togen_ai_latest_experimentalto 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_experimentalinstrumentation to record files being passed to the model (#3840).
opentelemetry-instrumentation-google-genai 0.4b0
- 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 togen_ai_latest_experimentalto see them (#3386) - Support CompletionHook for upload to cloud storage.
opentelemetry-util-genai 0.2b0
- Add jsonlines support to fsspec uploader (https://github.com/open-telemetry/opentelemetry-python-contrib/pull/3791)
- Rename "fsspec_upload" entry point and classes to more generic "upload" (https://github.com/open-telemetry/opentelemetry-python-contrib/pull/3798)
- Record content-type and use canonical paths in fsspec genai uploader (https://github.com/open-telemetry/opentelemetry-python-contrib/pull/3795)
- Make inputs / outputs / system instructions optional params to
on_completion, (https://github.com/open-telemetry/opentelemetry-python-contrib/pull/3802). - Use a SHA256 hash of the system instructions as it's upload filename, and check if the file exists before re-uploading it, (https://github.com/open-telemetry/opentelemetry-python-contrib/pull/3814).
opentelemetry-instrumentation-openai-agents-v2 0.1.0
opentelemetry-util-genai 0.1b0
-
Add completion hook to genai utils to implement semconv v1.37.
Includes a hook implementation using
fsspecto support uploading to various pluggable backends. -
Add a utility to parse the
OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENTenvironment variable. Addgen_ai_latest_experimentalas a new value to the Sem Conv stability flag (#3716).
Version 1.37.0/0.58b0
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 inuninstrument_app()by properly removing apps from the tracking set (#3688)opentelemetry-instrumentation-tornadoFix server (request) duration metric calculation (#3679)opentelemetry-instrumentation-tornado: Fix to properly skip all server telemetry when URL excluded. (#3680)opentelemetry-instrumentation: Avoid calls tocontext.detachwithNonetoken. (#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-asgiFixed 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 usingFastAPIInstrumentor.instrument()(#3701)
Added
opentelemetry-util-genaiAdd a utility to parse theOTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENTenvironment variable. Addgen_ai_latest_experimentalas a new value to the Sem Conv stability flag (#3716).opentelemetry-instrumentation-confluent-kafkaAdd support for confluent-kafka <=2.11.0 (#3685)opentelemetry-instrumentation-system-metrics: Addcpython.gc.collected_objectsandcpython.gc.uncollectable_objectsmetrics (#3666)opentelemetry-sdk-extension-awsAdd AWS X-Ray Remote Sampler with initial Rules Poller implementation (#3366)opentelemetry-instrumentation: add support forOTEL_PYTHON_AUTO_INSTRUMENTATION_EXPERIMENTAL_GEVENT_PATCHto 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
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)