opentelemetry-python
opentelemetry-python copied to clipboard
OpenTelemetry Python API and SDK
**Describe your environment** I am experiencing a segmentation fault when using auto instrumentation with any asgi application. I have tested with both starlette and fastapi. **Steps to reproduce** Can be...
This is a prototype of https://github.com/open-telemetry/opentelemetry-specification/pull/4485: - extends standard attributes to include AnyValue - use them on all public APIs type hints except metrics TODO: - [ ] Decide if...
# Description Adds support for HTTP OTLPMetricExporter configurable `max_export_batch_size`, like the gRPC OTLPMetricExporter already does (completed through issue https://github.com/open-telemetry/opentelemetry-python/issues/2710 with PR https://github.com/open-telemetry/opentelemetry-python/pull/2809). This is currently much longer than the gRPC...
# Description Fixed error during shutdown: 'cannot schedule new futures after shutdow'. Modified shutdown sequence to handle executor already being in shutdown state. Added direct processor shutdown when executor is...
Helpers that creates metrics should have knowledge of the preferred bucket boundaries otherwise they do more harm than good when used. Two that comes to mind are `create_http_server_request_duration` and `create_http_client_request_duration`....
### What happened? We recently fixed a recursion error in logging (#4255) switching a call from logging to warnings. We need to audit for this kind of issues to other...
# Description ## Type of change Please delete options that are not relevant. - [x] Bug fix (non-breaking change which fixes an issue) - [x] This change requires a documentation...
Same as https://github.com/open-telemetry/opentelemetry-python-contrib/pull/3185
### Describe your environment OS: (e.g, Ubuntu) Python version: Python 3.12.9 SDK version: 1.30 API version: 1.30 ### What happened? ``` ^^^^^^^^^^^^^ File "/home/admin/.venv/lib/python3.12/site-packages/opentelemetry/instrumentation/urllib3/__init__.py", line 316, in instrumented_urlopen return wrapped(*args,...
### Describe your environment _No response_ ### What happened? The [SDK `LoggingHandler`](https://github.com/open-telemetry/opentelemetry-python/blob/b3476a5480efacb58e0dba1ccc4e11f5dbea1a6f/opentelemetry-sdk/src/opentelemetry/sdk/_logs/_internal/__init__.py#L470-L482) can be initialized in a bad state by doing just `handler = LoggingHandler()`. When i do this: ```...