opentelemetry-python
opentelemetry-python copied to clipboard
OpenTelemetry Python API and SDK
**Is your feature request related to a problem?** Importing opentelemetry is rather slow due to the import of pkg_resources in opentelemetry.context [here](https://github.com/open-telemetry/opentelemetry-python/blob/main/opentelemetry-api/src/opentelemetry/context/__init__.py#L22) It is a known shortcoming of ``pkg_resources`` that...
I accidentally found this issue while working on #2886. To reproduce, add these changes in `main`: ``` diff diff --git a/opentelemetry-sdk/tests/metrics/test_periodic_exporting_metric_reader.py b/opentelemetry-sdk/tests/metrics/test_periodic_exporting_metric_reader.py index bdc15eb96..cb0e5a400 100644 --- a/opentelemetry-sdk/tests/metrics/test_periodic_exporting_metric_reader.py +++ b/opentelemetry-sdk/tests/metrics/test_periodic_exporting_metric_reader.py @@...
**Is your feature request related to a problem?** We am using Prometheus as the backend. When we create a new Counter Instrument with ``` counter = meter.create_counter("COUNTER_NAME") ``` The metric...
The OTel Python [v1.12.0 release](https://github.com/open-telemetry/opentelemetry-python/tree/v1.12.0) includes stable metrics API and SDK. We are hoping a TC member can review our implementation vs the spec matrix and point out if there...
# Description According to the [Logs Data Model](https://opentelemetry.io/docs/reference/specification/logs/data-model/), `SeverityNumber` is an [integer number](https://opentelemetry.io/docs/reference/specification/logs/data-model/#field-severitynumber). This PR will change the `LogRecord.to_json()` func to use the `SeverityNumber` numeric value. Previously the `SeverityNumber` type,...
### Problem Statement Following the [specification change to add partial success responses](https://github.com/open-telemetry/opentelemetry-specification/pull/2696), each OTel SDK is encouraged to handle the resulting error message string in an appropriate way, considering existing...
**Describe your environment** Python version: 3.10.10 Opentelemetry-python version: 1.23.0 **Steps to reproduce** It is defined in types.py, https://github.com/open-telemetry/opentelemetry-python/blob/main/opentelemetry-api/src/opentelemetry/util/types.py#L18, that we can supply a sequence of say strings as an attribute...
**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....