opentelemetry-python-contrib
opentelemetry-python-contrib copied to clipboard
OpenTelemetry instrumentation for Python modules
# 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 Currently, the user was not able to cancel the stream. The cause was that instead of returning `_MultiThreadedRendezvous` we returned the generator created from it. I tried two...
# Description https://github.com/open-telemetry/opentelemetry-python-contrib/issues/2177 Fixes # 2177 ## Type of change Please delete options that are not relevant. - [X] New feature (non-breaking change which adds functionality) - [ ] This...
#1555 introduced a bug when using pymongo sessions, the instrumentor now outputs the message ``` Invalid type dict in attribute value sequence. Expected one of ['bool', 'str', 'bytes', 'int', 'float']...
**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....
### Describe your environment name: opentelemetry channels: - conda-forge dependencies: - _libgcc_mutex=0.1=conda_forge - _openmp_mutex=4.5=2_gnu - bzip2=1.0.8=hd590300_5 - ca-certificates=2024.6.2=hbcca054_0 - ld_impl_linux-64=2.40=hf3520f5_7 - libffi=3.4.2=h7f98852_5 - libgcc-ng=13.2.0=h77fa898_13 - libgomp=13.2.0=h77fa898_13 - libnsl=2.0.1=hd590300_0 - libsqlite=3.46.0=hde9e2c9_0...
**Describe your environment** Python 3.10.4 (also reproduced in other versions) Ubuntu 22.04.2 LTS x86_64 pip freeze output: ``` confluent-kafka==2.2.0 Deprecated==1.2.14 exceptiongroup==1.1.2 importlib-metadata==6.8.0 iniconfig==2.0.0 opentelemetry-api==1.19.0 opentelemetry-instrumentation-confluent-kafka==0.40b0 packaging==23.1 pluggy==1.2.0 pytest==7.4.0 tomli==2.0.1 wrapt==1.15.0...
Spans from redis instrumentation don't contain a lot of attributes, such as "db.system", "net.transport" and so on. It happens because RedisCluster instance doesn't have [connection_pool attribute](https://github.com/open-telemetry/opentelemetry-python-contrib/blob/4f66183/instrumentation/opentelemetry-instrumentation-redis/src/opentelemetry/instrumentation/redis/__init__.py#L131). **Describe your environment** Ubuntu...
# Description add - `OTEL_PYTHON_HTTP_SERVER_REQUEST_DURATION_SERVER_ATTRIBUTES_ENABLED` flag to add `server.address` and `server.port` for `http.server.request.duration` - which are [opt-in](https://opentelemetry.io/docs/specs/semconv/http/http-metrics/#metric-httpserverrequestduration) - `OTEL_PYTHON_HTTP_SERVER_ACTIVE_REQUESTS_COUNT_SERVER_ATTRIBUTES_ENABLED` - flag to add `server.address` and `server.port` for `http.server.active_requests` - also...