Added
opentelemetry-instrumentation-dbapi: capture prepared statement parameters asdb.query.parameter.<key>when the database semantic conventions are opted in andcapture_parametersis enabled. In the new semconv the legacydb.statement.parametersattribute is replaced by onedb.query.parameter.<key>attribute per parameter, and parameters are not captured on batch operations (#4798)opentelemetry-instrumentation-psycopg2: add semantic convention stability opt-in mode tests (#4837)opentelemetry-instrumentation-django: add opt-inOTEL_PYTHON_DJANGO_CODE_ATTRIBUTESenv var to add Django View references using code attributes into the span. (#4840)opentelemetry-util-http: addredact_query_stringto redact sensitive values in a bare query string (#4944)opentelemetry-instrumentation: prepare semconv utilities to support messaging stability opt-in (#4974)opentelemetry-instrumentation-*: documentOTEL_SEMCONV_STABILITY_OPT_INfor database instrumentations (#4985)- Add Python 3.15 support (#5238)
opentelemetry-instrumentation-asgi: addOTEL_PYTHON_ASGI_EXCLUDE_SPANSenvironment variable to exclude internalsend/receivespans (#5255)
Changed
opentelemetry-instrumentation-exceptions: use theexceptionevent name for emitted log records, as the exception log semantic conventions prescribe for global unhandled exception handlers. The record body still carries the stringified exception. (#5020)- [BREAKING]
opentelemetry-instrumentation-sqlalchemy: emitdb.client.connection.count, replacing the deprecateddb.client.connections.usagemetric (#5063) opentelemetry-instrumentation-sqlalchemy: Support SQLAlchemy 2.1 and drop support for SQLAlchemy < 1.4.3 (#5120)opentelemetry-instrumentation-asgi,opentelemetry-instrumentation-dbapi,opentelemetry-instrumentation-django,opentelemetry-instrumentation-falcon,opentelemetry-instrumentation-flask,opentelemetry-instrumentation-httpx,opentelemetry-instrumentation-redis,opentelemetry-instrumentation-requests,opentelemetry-instrumentation-sqlalchemy,opentelemetry-instrumentation-tornado,opentelemetry-instrumentation-tortoiseorm: batch span attribute updates (#5156)opentelemetry-instrumentation-aiokafka: pass known attributes at span creation for sampler visibility (#5254)opentelemetry-instrumentation-confluent-kafka: pass known attributes at span creation for sampler visibility (#5300)opentelemetry-instrumentation-kafka-python: pass known attributes at span creation for sampler visibility (#5301)opentelemetry-instrumentation-boto3sqs: pass known attributes at span creation for sampler visibility (#5302)opentelemetry-instrumentation-celery: pass known attributes at span creation for sampler visibility (#5312)opentelemetry-instrumentation-pika: pass known attributes at span creation for sampler visibility (#5313)opentelemetry-instrumentation-exceptions,opentelemetry-instrumentation-vertexai: pass optional arguments toget_loggerby keyword (#5337)opentelemetry-instrumentation-tornado: Pass the URL and method attributes to the HTTP client span at creation so samplers can use them (#5348)
Fixed
opentelemetry-instrumentation-celery:celery.hostnameon worker spans now reports the executing worker instead of being overwritten by the messageorigin; the publisher's nodename is emitted separately ascelery.origin(#4827)opentelemetry-instrumentation-logging: Keep log record factories chained after ours on uninstrument, and stop injecting once uninstrumented (#4905)opentelemetry-instrumentation-asyncpg: report unix sockets asnetwork.transport=unix(#4925)opentelemetry-instrumentation-dbapi: avoidIndexErroringet_operation_namefor comment-only or whitespace-only statements (#4934)opentelemetry-instrumentation-wsgi: redact sensitive query parameter values inhttp.targetandurl.query(#4944)opentelemetry-instrumentation-logging: restore root logger state during uninstrumentation (#4982)opentelemetry-instrumentation-tornado: stopunpatch_handler_classraisingAttributeErroron a subclass of a patched handler (#5001)opentelemetry-instrumentation-celery: flush tracer and meter providers when a worker process shuts down, including whenworker_max_tasks_per_childrecycles the pool child. Limit waiting to one second across both providers; slow exporters may still lose buffered telemetry when the child exits (#5003)opentelemetry-instrumentation-threading: keep submitted callable metadata insubmit(#5011)opentelemetry-instrumentation-celery: fix flaky metrics tests and restore PyPy test coverage (#5016)opentelemetry-instrumentation-asgi: seterror.typeon an uncaught exception (#5031)opentelemetry-instrumentation-wsgi: make captured request headers available to samplers (#5032)opentelemetry-instrumentation-sqlalchemy: do not append the database name todb.operation.nameanddb.operation; the span name keeps the<operation> <target>form (#5043)opentelemetry-instrumentation-tortoiseorm: avoidIndexErrorin_do_executefor empty or whitespace-only statements and strip a leading/* ... */comment from the span name (#5065)opentelemetry-instrumentation-django: make captured request headers available to samplers (#5073)opentelemetry-instrumentation-logging: stop exporting the injectedotelSpanID,otelTraceID,otelTraceSampledandotelServiceNameattributes on emitted log records, where the trace context is already carried by thetrace_id,span_idandtrace_flagsfields (#5077)opentelemetry-instrumentation-aws-lambda: mark HTTP 5xx responses as errors (#5082)opentelemetry-instrumentation-asyncpg: support queries passed by keyword (#5088)opentelemetry-instrumentation-celery: normalize Kombu routing objects in span attributes (#5105)opentelemetry-instrumentation-asyncclick: allowwrapt2.x by widening the requirement towrapt >= 1.0.0, < 3.0.0(#5117) -opentelemetry-instrumentation-falcon,opentelemetry-instrumentation-tornado: use the semconv unit{request}forhttp.server.active_requests(#5125)opentelemetry-instrumentation-logging: switch from usingInMemoryLogExportertoInMemoryLogRecordExporterin tests (#5133)opentelemetry-exporter-prometheus-remote-write: fix invertedinsecure_skip_verifyTLS option;Truenow skips certificate verification (#5134)opentelemetry-instrumentation: report invalid or missing library versions as dependency conflicts instead of raising (#5136)opentelemetry-instrumentation-falcon: applyinstrument()options to every app and stop modifying the caller'smiddlewarelist (#5137)opentelemetry-instrumentation-dbapi: emit database metrics by default with schema 1.33.0 (#5157)opentelemetry-instrumentation-asgi: make captured request headers available to samplers (#5158)opentelemetry-instrumentation-aiohttp-server: make captured request headers available to samplers (#5159)opentelemetry-instrumentation-falcon: make captured request headers available to samplers (#5160)opentelemetry-instrumentation-flask: make captured request headers available to samplers (#5161)opentelemetry-instrumentation-pyramid: make captured request headers available to samplers (#5162)opentelemetry-instrumentation-tornado: make captured request headers available to samplers (#5163)opentelemetry-instrumentation-asyncio: preserve duplicate arguments togather(#5168)opentelemetry-instrumentation-boto3sqs: letdelete_message_batchwithoutEntriesraise botocore'sParamValidationErrorinstead of aTypeError(#5169)opentelemetry-instrumentation-tornado: sanitize captured headers and match header names with regexes (#5170)opentelemetry-instrumentation-aiopg: honor instrumentation suppression for database spans and metrics (#5175)opentelemetry-util-http: ignore empty entries in excluded URLs so a trailing or doubled comma no longer excludes every request (#5186)opentelemetry-instrumentation: makeBaseInstrumentorandBaseDistrovisible to type checkers (#5201)opentelemetry-instrumentation-urllib: recordserver.addressandserver.porton HTTP client metrics, resolving default ports for implicit URLs (#5216) -opentelemetry-instrumentation-click,opentelemetry-instrumentation-asyncclick: do not mark a zero exit code as an error, and record the code passed tosys.exit()(#5222)opentelemetry-instrumentation-tortoiseorm: declarepydantic >= 1.10.2in_instrumentsso the dependency conflict check verifies it (#5232)opentelemetry-instrumentation-sqlalchemy: fix pool connection count drift undersuppress_instrumentation()(#5246)opentelemetry-util-http: redactX-Amz-Signature,X-Amz-Credential, andX-Amz-Security-Tokenquery parameters (#5280)opentelemetry-instrumentation-httpx: accept httpx2 client and transport types on HTTPX2 APIs (#5297)opentelemetry-util-http: ignore blank entries in header lists, so a trailing comma inOTEL_INSTRUMENTATION_HTTP_CAPTURE_HEADERS_SANITIZE_FIELDSno longer redacts every captured header (#5305)opentelemetry-instrumentation-urllib: Keep the default socket timeout whenOpenerDirector.openis called without a timeout (#5347)opentelemetry-instrumentation-click,opentelemetry-instrumentation-asyncclick,opentelemetry-instrumentation-threading: fix malformedHomepageURL (#5370)opentelemetry-instrumentation-asgi: redact query string before unquoting (#5376)opentelemetry-instrumentation-aws-lambda: redact query string before using it in http.target (#5377)