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.2.0.tar.gz
(10.6 kB
view details)
Built Distribution
File details
Details for the file pyroscope_otel-0.2.0.tar.gz
.
File metadata
- Download URL: pyroscope_otel-0.2.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 | 6e0dc8e253a877a707adbe689725ac9ff83c6d2a9c2102e1dfb7e9179a40b677 |
|
MD5 | 96e455a42349eda8d29caf5ea79c327e |
|
BLAKE2b-256 | 0ccfae697097ee7ccb27061d6fde8e041fd7b752f2f00e9cc11f8bb49322a0eb |
File details
Details for the file pyroscope_otel-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: pyroscope_otel-0.2.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 | 121f5f7ab8c99af5fe964ea25a5bd1b1571e70fbe616db6fe549b98cdc966aa8 |
|
MD5 | c2f298c90a7d64bc37f7f2792ef1a6d6 |
|
BLAKE2b-256 | 2aac57d241b257c2979ce142b2ba6fd5d2e64dc5b377a90e68b0adda4de38065 |