opentelemetry-python
opentelemetry-python copied to clipboard
OpenTelemetry Python API and SDK
I wrote some exporters for internal use. The use case was to fall back to writing to a file if we encountered a network failure. I'm leaving this here to...
### Describe your environment OS: Ubuntu Python version: Python 3.8 SDK version: 1.27.0 API version: 1.27.0 Exporter: 1.27.0 Endpoint: Telegraf, docker, 1.28, OpenTelemetry input(https://github.com/influxdata/telegraf/tree/master/plugins/inputs/opentelemetry) ### What happened? If the metric...
Description This PR fixes the broken link in the Prometheus exporter README.rst by updating it to point to the current documentation location on opentelemetry.io. The old link pointed to a...
### Describe your environment OS: macOS 15.2 Python version: 3.13.0 Dependencies from `pip install opentelemetry-sdk`: ``` deprecated==1.2.18 importlib-metadata==8.5.0 opentelemetry-api==1.30.0 opentelemetry-sdk==1.30.0 opentelemetry-semantic-conventions==0.51b0 typing-extensions==4.12.2 wrapt==1.17.2 zipp==3.21.0 ``` ### What happened? I tried...
### Describe your environment OS: debian Python version: 3.11.2 SDK version: 1.31 & 1.24 API version: 1.31 & 1.24 ### What happened? I expect the following code to show both...
### Is your feature request related to a problem? Currently, if you set up a histogram with unit "s" and default bucket boundaries, the boundaries are reasonable for network latencies...
``` =================================== FAILURES =================================== _____________ TestOTLPExporterMixin.test_shutdown_wait_last_export _____________ self = def test_shutdown_wait_last_export(self): result_mock = Mock() rpc_error = RpcError() def code(self): return StatusCode.UNAVAILABLE def trailing_metadata(self): return { "google.rpc.retryinfo-bin": RetryInfo( retry_delay=Duration(nanos=int(1e7)) ).SerializeToString() }...
### Describe your environment OS: Linux Python version: 3.12 SDK version: 1.24 API version: 1.24 ### What happened? Check out https://github.com/open-telemetry/opentelemetry-proto/issues/640 The response from the HTTP OTLP Exporters should be...
From comment: https://github.com/open-telemetry/opentelemetry-python/pull/2891#pullrequestreview-1154473471 Similar to what we do [grpc])(https://github.com/open-telemetry/opentelemetry-python/blob/main/exporter/opentelemetry-exporter-otlp-proto-grpc/src/opentelemetry/exporter/otlp/proto/grpc/exporter.py#L187)
# Description It seems like the behavior we want for `Shutdown()` is: - Don't interrupt an in flight export RPC/Request. - Prevent any new export RPC/Request from being made. -...