opentelemetry-python
opentelemetry-python copied to clipboard
OpenTelemetry Python API and SDK
# Description - Resolve missing API details within auto generated docs (https://github.com/open-telemetry/opentelemetry-python/issues/2786) Fixes # (issue) ## Type of change Please delete options that are not relevant. - [x] Bug fix...
The API section in the [OpenTelemetry OTLP Exporters](https://opentelemetry-python.readthedocs.io/en/latest/exporter/otlp/otlp.html#api) documentation page is not being generated. According to [otlp.rst](https://github.com/open-telemetry/opentelemetry-python/blob/main/docs/exporter/otlp/otlp.rst), it should be generated: ```rst .. automodule:: opentelemetry.exporter.otlp.proto.grpc :members: :undoc-members: :show-inheritance: ```
# 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....
**Describe your environment** OTel packages v1.11.1 and v0.30b1. Python 3.8.11 but Python version should be irrelevant to this problem. Bug spotted on MacOS, but should happen on all systems. **Steps...
Env: opentelemetry-exporter-otel-proto-grpc 1.12.0rc1 python 3.10 **Steps to reproduce** 1. Follow the example code: https://github.com/open-telemetry/opentelemetry-python/blob/main/docs/examples/logs/example.py ``` log_emitter_provider = LogEmitterProvider( resource=Resource.create( { "service.name": "shoppingcart" } ), ) set_log_emitter_provider(log_emitter_provider) exporter = OTLPLogExporter(insecure=True) log_emitter_provider.add_log_processor(BatchLogProcessor(exporter))...
Add an example that uses the new metrics SDK and the system metrics instrumentation.
**Is your feature request related to a problem? Please describe.** The Project Status of Traces/Metrics/Logs Signals in OpenTelemetry is difficult to find in OpenTelemetry for Python. **Describe the solution you'd...
When calling `TracerProvicer.get_tracer()`, I see a deprecationwarning even though both libraries are at the same version. The issue seems to be that the sdk instantiates an `InstrumentationInfo` object here: https://github.com/open-telemetry/opentelemetry-python/blob/main/opentelemetry-sdk/src/opentelemetry/sdk/trace/__init__.py#L1162-L1166...
**Describe your environment** `pyproject.toml` dependencies installed via poetry: ``` python = "3.8.11" opentelemetry-instrumentation = "^0.32b0" opentelemetry-instrumentation-fastapi = "^0.32b0" opentelemetry-instrumentation-sqlalchemy = "^0.32b0" opentelemetry-instrumentation-requests = "^0.32b0" opentelemetry-instrumentation-httpx = "^0.32b0" opentelemetry-instrumentation-logging = "^0.32b0"...
It would be nice to provide something like this. ```python with hist.record(): ... ```