Skip to main content

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

Integration

Add the following package to your project:

pip install pyroscole-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


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.1.0.tar.gz (10.6 kB view hashes)

Uploaded Source

Built Distribution

pyroscope_otel-0.1.0-py3-none-any.whl (10.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page