David Gang
973d10d218
`opentelemetry-instrumentation-system-metrics`: Add `cpython.gc.collected_objects` and `cpython.gc.uncollectable_objects` metrics ( #3666 )
...
* `opentelemetry-instrumentation-system-metrics`: Add `cpython.gc.collected_objects` and `cpython.gc.uncollectable_objects` metrics
* Update __init__.py
* Update CHANGELOG.md
---------
Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
Co-authored-by: Emídio Neto <9735060+emdneto@users.noreply.github.com>
2025-08-23 13:15:31 +00:00
Artem Ziborev
5fa222f005
fix: fastapi memory leak only ( #3688 )
...
* fix(fastapi-instrumentation): properly remove app from instrumented list to avoid memory leaks
* fix(fastapi-instrumentation): fix tests and finalize memory leak fix
* docs(changelog): add FastAPI uninstrument memory leak fix with PR references (#3683 )
* test(fastapi): add GC-based app collection test; refactor tracking to WeakSet and safe discard
* docs(changelog): reference FastAPI memory leak fix PR (#3688 )
* refactor(fastapi): drop __del__ as WeakSet handles cleanup
* chore(fastapi): formatting after ruff auto-fix
* chore(test-fastapi): ruff import order
* Update comment to clarify purpose of removing app from WeakSet
* fix: codereview comments
* Apply suggestions from code review
---------
Co-authored-by: Emídio Neto <9735060+emdneto@users.noreply.github.com>
Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
2025-08-23 15:08:16 +02:00
Mike Dearman
3567a03a0e
Fix tornado server (request) duration metric calculation ( #3679 )
...
* Fix `opentelemetry-instrumentation-tornado` server (request) duration metric calculation (#3486 )
* Update changelog
* Linting
* Add tornado metrics test_metrics_concurrent_requests test
* Fix tornado test ms to sec conversion
---------
Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
2025-08-22 15:11:44 +00:00
Gershon Papi
c6b14fcd4d
feat: Update opentelemetry-instrumentation-confluent-kafka to support confluent-kafka <=2.11.0 ( #3685 )
...
* feat: Update opentelemetry-instrumentation-confluent-kafka to support confluent-kafka <=2.11.0
* changelog
* cr
* fixes + uv lock
2025-08-22 15:06:45 +00:00
Aaron Abbott
8c3bf3e497
Add @dylanrussell to contrib approvers ( #3697 )
2025-08-18 14:31:01 -04:00
Aaron Abbott
cc6f467aea
Move @shalevr to Emeritus ( #3698 )
...
* Move @shalevr to Emeritus
* Update README.md
Co-authored-by: Emídio Neto <9735060+emdneto@users.noreply.github.com>
---------
Co-authored-by: Emídio Neto <9735060+emdneto@users.noreply.github.com>
2025-08-18 11:59:42 -04:00
Andre Murbach Maidl
f11f03ce6e
Avoid calls to context.detach with None token ( #3673 )
...
* fixes open-telemetry/opentelemetry-python-contrib#3351
* Add changelog entry about open-telemetry/opentelemetry-python-contrib#3673
---------
Co-authored-by: Emídio Neto <9735060+emdneto@users.noreply.github.com>
Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
2025-08-18 12:39:16 +00:00
Keith Decker
bbcdf8b737
GenAI Utils Structure ( #3672 )
...
* GenAI SDK Structure
* generate bootstrap entry
* Rename GenAI SDK to GenAI Utils
* remove duplicate dependency
* update uv lock
* generate tox doc
* remove sdk dependency, remove bootstrap entry
* ran tox generate and uv sync
* move package out of instrumentation folder
* remove package file
* rename package to align with other util package
* add tox boilerplate
* tox boilerplate
* Fix pytest version
* Corrected RST Link
2025-08-14 22:33:26 -04:00
Islam Sharabash
29dfd569fd
Fix tracing of async cursors for psycopg ( #3324 )
...
* Fix tracing of async cursors for psycopg
This copies the traced_execution of AsyncCursorTracer except
query_method is awaited within the span.
Fixes https://github.com/open-telemetry/opentelemetry-python-contrib/issues/2486
* Adding a regression test for asynccursor bug
Adds a test to check that the async tracer is actually awaiting
cursor.execute.
On my machine, with the bug present, the duration is 14000ns. With the
bug patched the the duration is orders of magnitude larger.
* Make return type of query_method an awaitable
* Move implementation to traced_execution_async
---------
Co-authored-by: Aaron Abbott <aaronabbott@google.com>
2025-08-13 14:14:11 +00:00
Ezzio Moreira
aa0579d1f0
refactor: semcov opentelemetry-instrumentation/src/opentelemetry/instrumentation/_semconv.py ( #3613 )
...
* feat: refactor semcov opentelemetry-instrumentation
* fix: return shema senconv
* fix: change schema
---------
Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
2025-08-11 13:28:47 +00:00
Emídio Neto
a5184dc53c
Add statement encouraging contributors to review PRs ( #3686 )
...
* Add statement encouraging contributors to review PRs
* Update CONTRIBUTING.md
2025-08-11 15:21:23 +02:00
Keith Decker
74536f1a92
Add Weaviate Instrumentation Structure ( #3646 )
...
* Initial structure
* Update scripts/generate_instrumentation_bootstrap.py
Co-authored-by: Pablo Collins <pablo.collins@gmail.com>
* missing generated library
* Version update to offset traceloop implementation
* uv sync after rebase
* Missing release entries
---------
Co-authored-by: Pablo Collins <pablo.collins@gmail.com>
2025-08-04 12:36:10 -04:00
David Gang
d2d136dafd
Update garbage collection metrics to use get_stats to align with semconv ( #3661 )
2025-07-30 18:44:24 +02:00
David Gang
9bf77b5ef0
add gc_count metrics with correct collection unit . ( #3617 )
...
fixes #3549
Co-authored-by: Emídio Neto <9735060+emdneto@users.noreply.github.com>
Co-authored-by: Aaron Abbott <aaronabbott@google.com>
2025-07-29 17:15:36 -04:00
otelbot[bot]
76509d7053
Update version to 1.37.0.dev/0.58b0.dev ( #3658 )
2025-07-29 07:50:20 -08:00
Ezzio Moreira
fc442d1e01
feat(starlette): stop using SpanAttributes ( #3655 )
...
Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
2025-07-28 14:27:44 +00:00
Joe McGinley
a39c6c166d
Fix git pull error in core contrib test ( #3357 )
...
* Fix git pull error in core contrib test
Core contrib is intermittently failing when
pulling the core repo because tox does not
retry on failure.
Add gh actions/checkout for the core repo
before running tox to mitigate this.
* generate-workflows
Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>
* Update CHANGELOG.md
---------
Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>
Co-authored-by: emdneto <9735060+emdneto@users.noreply.github.com>
Co-authored-by: Leighton Chen <lechen@microsoft.com>
2025-07-28 16:23:13 +02:00
nikkie
d74291d0e0
Fix typo ( #3656 )
2025-07-28 08:15:32 +00:00
wrisa
80d5ba1f40
Start supporting langchain instrumentation ( #3600 )
...
* Added base files for the project
* Added fix for generate and pre-commit
* Added package.py
* tox generate changes to auto-generated files
* tox ruff reformatted file
* removed python 3.8 from classifiers
* addressed comments
* addressed aabmass's comments
2025-07-25 14:41:27 -04:00
OpenTelemetry Bot
bca482609b
Add minimum token permissions for all github workflow files ( #3604 )
2025-07-24 07:33:31 -08:00
OpenTelemetry Bot
c30b8fa9a5
Migrate from opentelemetrybot to otelbot ( #3641 )
2025-07-23 09:02:44 -08:00
Jeremy Voss
77f3171bd4
Add "instruments-any" feature: unblock multi-target instrumentations while fixing dependency conflict breakage. ( #3610 )
2025-07-21 08:24:50 -08:00
Ezzio Moreira
f20fa77ad5
refactor: opentelemetry-instrumentation-urllib ( #3639 )
...
Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
2025-07-16 08:11:46 +00:00
David Gang
f9453b940a
Fix system metrics unit tests on mac ( #3638 )
...
* Fix system metrics unit tests on mac
Don't test for system.network.connections on mac
* round
2025-07-14 18:31:33 +02:00
OpenTelemetry Bot
109173fec7
Update version to 1.36.0.dev/0.57b0.dev ( #3633 )
2025-07-11 14:35:47 +02:00
Emídio Neto
b63ca133be
Update CHANGELOG.md ( #3632 )
2025-07-11 13:33:10 +02:00
OpenTelemetry Bot
1f78c8acff
Sort contributor listings and remove affiliation from emeriti ( #3627 )
...
Co-authored-by: otelbot <197425009+otelbot@users.noreply.github.com>
2025-07-11 09:20:33 +00:00
Mike Dearman
49fa53131d
Add tornado WebSocketHandler instrumentation support ( #3498 )
...
* Add tornado WebSocketHandler instrumentation support. (https://github.com/open-telemetry/opentelemetry-python-contrib/issues/2761 )
* Linting
* Update CHANGELOG.md
* Apply refactor changes from #3582
---------
Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
2025-07-10 17:41:36 +02:00
OpenTelemetry Bot
333fc5dcb4
Update opentelemetry-instrumentation-google-genai version to v0.4b0 ( #3619 )
2025-07-08 14:46:08 -04:00
warmagedon007
80c357bb16
pika: added instrumentation for pika.connection.Connection and pika.c… ( #3584 )
...
* pika: added instrumentation for pika.connection.Connection and pika.channel.Channel, thus added instrumentation support to all SelectConnection adapters.
* updated changelog.
---------
Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
2025-07-07 08:17:31 +00:00
Prajna Paramita Biswal
3c4d18cc13
ref(mysql): remove SpanAttributes ( #3616 )
...
* ref(mysql): remove SpanAttributes
* fix imports
2025-07-07 09:43:47 +02:00
Radoslav Kirilov
b74633a552
feat(pymongo): aggregate and getMore capture statements support ( #3601 )
...
* feat(pymongo): aggregate and getMore capture statements
* chore: update changelog
* fix: tests
* fix: proper MockCommand and expectations
* chore: ruff-format
2025-07-02 07:23:51 +00:00
Carlos RC
b1c2c7941b
fix excluded_urls in instrumentation-asgi ( #3567 )
...
* fix excluded_urls in instrumentation-asgi
* fix ExcludeList or str
* chhangelog
---------
Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
2025-07-01 12:33:01 +00:00
rads-1996
b69ebb7224
Redact specific url query string values and url credentials in instrumentations ( #3508 )
...
* Updated the instrumentation with aiohttp-server tests for url redaction
* Updated the aiohttp-server implementation and the query redaction logic
* Updated changelog and moved change to unreleased. Updated test files with license header
* Improved formatting
* Fixed failing tests
* Fixed ruff
* Update util/opentelemetry-util-http/src/opentelemetry/util/http/__init__.py
Co-authored-by: Emídio Neto <9735060+emdneto@users.noreply.github.com>
---------
Co-authored-by: Emídio Neto <9735060+emdneto@users.noreply.github.com>
2025-07-01 12:26:47 +00:00
Andre Murbach Maidl
6977da3893
Improve asgi instrumentation example ( #3576 )
...
* Improve asgi instrumentation example
* Fix indentation of asgi instrumentation example
* Improve type hints of asgi instrumentation example
* Ignore pylint too-many-lines
---------
Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
2025-06-30 11:03:50 +02:00
Ezzio Moreira
ca079cbc56
feat: change semcov util/opentelemetry-util-http ( #3592 )
2025-06-30 08:21:28 +00:00
OpenTelemetry Bot
40d8942bf5
Update community member listings ( #3595 )
...
* Update community member listings
* Fix outdated community membership link
---------
Co-authored-by: otelbot <197425009+otelbot@users.noreply.github.com>
2025-06-30 08:14:08 +00:00
Emídio Neto
78300e9642
Update CHANGELOG.md ( #3593 )
2025-06-26 12:01:51 +02:00
shwejan raj
c4347e027c
adds NoOpTracerProvider test case for falcon instrumentation ( #3382 )
...
Signed-off-by: Shwejan Raj, Bhupathi <Bhupathi.ShwejanRaj@fmr.com>
Signed-off-by: Bhupathi Shwejan Raj <Bhupathi.ShwejanRaj@fmr.com>
2025-06-17 16:16:26 +00:00
f-kanari-safie
0a03c9abf2
refactor(tornado): replaces SpanAttributes by semconv attributes ( #3582 )
...
* refactor: fix import paths
* fix imports
---------
Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
2025-06-16 12:09:38 +00:00
Andre Murbach Maidl
85dbfe520a
Improve grpc instrumentation examples ( #3575 )
2025-06-16 09:31:12 +00:00
Andre Murbach Maidl
b27225273b
Improve wsgi instrumenation example ( #3577 )
2025-06-16 09:06:34 +00:00
Andre Murbach Maidl
591051f8bb
Improve pyramid instrumentation example ( #3578 )
...
Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
2025-06-16 08:42:59 +00:00
Riccardo Magliocchetti
50cdeeee12
resource-detector-containerid: demote failure to read cgroup files to debug ( #3579 )
...
* resource-detector-containerid: demote failure to read cgroup files to debug
Make the detection more quiet so we can load it on application not
running on linux machines without spamming logs.
* Add changelog
2025-06-16 10:33:16 +02:00
Riccardo Magliocchetti
04f8899252
docs: update redis-py documentation link ( #3581 )
2025-06-13 10:01:16 -03:00
OpenTelemetry Bot
59cc34e9f3
Update version to 1.35.0.dev/0.56b0.dev ( #3556 )
2025-06-04 16:53:03 +02:00
Phillip Verheyden
b7301823a0
Allow reraising the root exception if instrumentation fails ( #3545 )
...
* Allow reraising the root exception if instrumentation fails
I would rather completely fail startup in my services if instrumentation fails for whatever reason instead of just logging an exception and continuing.
Use case:
from opentelemetry import autoinstrumentation
autoinstrumentation.initialize(swallow_exceptions=False)
* Fix lint
* Type hinting, re-raise original exception
* One more type hint to indicate None return
---------
Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
2025-06-04 08:44:45 +00:00
Emídio Neto
4a21b3974b
resource-dector-container: package rename to `opentelemetry-resource-detector-containerid` ( #3536 )
...
* resource-dector-container: package rename
Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>
* fix ruff
Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>
* change entrypoint
Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>
* fix
Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>
* fix test
Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>
* fix for entrypoint name
Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>
* add changelog
Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>
---------
Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>
2025-06-04 10:41:38 +02:00
Artem Ziborev
85ea8f382d
refactor(grpc): replace SpanAttributes with semconv attributes ( #3540 )
...
* refactor(grpc): replace SpanAttributes with semconv attributes
* refactor(flask): replace SpanAttributes with semconv attributes (fix ruff linting)
---------
Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
2025-06-03 15:31:50 +00:00
Sean Hood
8f7bab5337
Fixes container detector for systemd & cgroupv1 with Docker ( #3429 )
...
* Fixes container detector for systemd & cgroupv1 with Docker
* Update CHANGELOG
---------
Co-authored-by: Emídio Neto <9735060+emdneto@users.noreply.github.com>
Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
2025-06-03 15:27:09 +00:00