A library providing profiling functionalities related to OpenTelemetry
Project description
Span profiles support for OpenTelemetry in Python
This package enables applications that already rely on OpenTelemetry for distributed tracing and Pyroscope for continuous profiling to link the tracing and profiling data together.
See https://grafana.com/docs/pyroscope/latest/configure-client/trace-span-profiles/ for more information.
Prerequisites
- Your Python application is instrumented with Pyroscope's profiler
- Your Python application is instrumented with OpenTelemetry
Integration
Add the following package to your project:
pip install pyroscope-otel
Register the PyroscopeSpanProcessor
in your OpenTelemetry integration:
from opentelemetry import trace
from opentelemetry.sdk.trace import TracerProvider
from pyroscope-otel import PyroscopeSpanProcessor
provider = TracerProvider()
provider.add_span_processor(PyroscopeSpanProcessor())
trace.set_tracer_provider(provider)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyroscope_otel-0.3.0.tar.gz
(10.6 kB
view details)
Built Distribution
File details
Details for the file pyroscope_otel-0.3.0.tar.gz
.
File metadata
- Download URL: pyroscope_otel-0.3.0.tar.gz
- Upload date:
- Size: 10.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d4d8c27d7ad979a45fdb5a243ae66969c43481d5ccb23655e2c64a73acf8a7f |
|
MD5 | b7777191a303643618b81c3c7ed9b72b |
|
BLAKE2b-256 | eca68fc01b8c073ea7b450e7817d580c0cf5b16d3d04e0063f55c482f632e957 |
File details
Details for the file pyroscope_otel-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: pyroscope_otel-0.3.0-py3-none-any.whl
- Upload date:
- Size: 10.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c7cd61f9a22cfd890c00c6d1e625b72005aa9d7e0adc2097ea3f8efd9533f57 |
|
MD5 | 9c7185a2bb8f47d560ed04519913e4d6 |
|
BLAKE2b-256 | 49ca8aff2b5988c4700cec1d67dfccdbad2f11717914cecbb291b0f03b6f247e |