opentelemetry-python-contrib
opentelemetry-python-contrib copied to clipboard
OpenTelemetry instrumentation for Python modules
### Describe your environment OS: (e.g, Ubuntu) Python version: (e.g., Python 3.8.10) Package version: (e.g., 0.46.0) ### What happened? system.memory.usage has no temporality and type being sent, should it be...
We're trying to find the space for GenAI-related instrumentation libraries (related to the https://github.com/open-telemetry/community/pull/2326 project). **TL;DR: we need to host OTel gen-ai instrumentations somewhere in otel, we're going to evolve...
**Describe your environment** Describe any aspect of your environment relevant to the problem, including your Python version, [platform](https://docs.python.org/3/library/platform.html), version numbers of installed dependencies, information about your cloud hosting provider, etc....
### What problem do you want to solve? A recent [PR](https://github.com/open-telemetry/opentelemetry-python-contrib/issues/2683) (fixed in https://github.com/open-telemetry/opentelemetry-python-contrib/pull/2783) broke the fastapi instrumentation. This was because "[instruments](https://github.com/open-telemetry/opentelemetry-python-contrib/blob/main/instrumentation/opentelemetry-instrumentation-fastapi/pyproject.toml#L36)" was treated as a set of dependencies _any...
# Description With `OTEL_SEMCONV_STABILITY_OPT_IN=http`, the `client.address` in server span is wrongly set to server address. It it because the middleware calls `_set_http_host_server` and the `client.address` is set for the first...
# Description Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change....
# Description Adds NoOpTracerProvider test cases for falcon instrumentation. Fixes [#983](https://github.com/open-telemetry/opentelemetry-python-contrib/issues/983) # How Has This Been Tested? tox -e test-instrumentation-botocore pytest instrumentation/opentelemetry-instrumentation-falcon/tests # Does This PR Require a Core Repo...
# Description This is a fix for #3380 that checks explicitly for a `None` result rather than evaluating truthiness. PubSub results with zero messages evaluate to `False`, causing `span.end()` to...
### Describe your environment OS: MacOS Python version: 3.12.9 Package version: commit `a5474c3b290f5fcd7b5e8f9953ae8b2891c374c0` google-cloud-pubsub 2.28.0 ### What happened? When instrumenting Google Cloud PubSub, I see a lot of log messages...
# Description This PR fixes an issue with SQL comment generation, the current implementation fails when processing non-string SQL queries, particularly those from psycopg2's SQL utilities. Modified _add_sql_comment() function to...