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 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


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)

Uploaded Source

Built Distribution

pyroscope_otel-0.3.0-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

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

Hashes for pyroscope_otel-0.3.0.tar.gz
Algorithm Hash digest
SHA256 3d4d8c27d7ad979a45fdb5a243ae66969c43481d5ccb23655e2c64a73acf8a7f
MD5 b7777191a303643618b81c3c7ed9b72b
BLAKE2b-256 eca68fc01b8c073ea7b450e7817d580c0cf5b16d3d04e0063f55c482f632e957

See more details on using hashes here.

File details

Details for the file pyroscope_otel-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pyroscope_otel-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5c7cd61f9a22cfd890c00c6d1e625b72005aa9d7e0adc2097ea3f8efd9533f57
MD5 9c7185a2bb8f47d560ed04519913e4d6
BLAKE2b-256 49ca8aff2b5988c4700cec1d67dfccdbad2f11717914cecbb291b0f03b6f247e

See more details on using hashes here.

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