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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyroscope_otel-0.4.1-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

Details for the file pyroscope_otel-0.4.1.tar.gz.

File metadata

  • Download URL: pyroscope_otel-0.4.1.tar.gz
  • Upload date:
  • Size: 10.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pyroscope_otel-0.4.1.tar.gz
Algorithm Hash digest
SHA256 36c376c04b0408fbf8dc329f4b7198c214d0466a1e619cadb72251c38e815b57
MD5 05be2b920bfcbdd4be189c67561b5c20
BLAKE2b-256 888aaa7b61a3f9a4f2ab9b44b790191ea85e6d4f4398b115d233f1c61b395369

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyroscope_otel-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 10.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pyroscope_otel-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 57fa917ca5f24f8e12f3853a80f50df57081e01585f4cd2c2db7a621fde8901c
MD5 4f1302fff76ae00300160815d025a3a8
BLAKE2b-256 149d5ba4dd7954d51a2384f5a4836000038593152e7fb491b6576162bff6c930

See more details on using hashes here.

Supported by

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