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.0.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.0-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyroscope_otel-0.4.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.4.0.tar.gz
Algorithm Hash digest
SHA256 c74f9bcfdbcd3093c25032215e17924755fcb91ae7c5d061099d8bd51cee7505
MD5 f0e32937e6eabf7fa2dcd12d690b9a6f
BLAKE2b-256 aee1f664ef0efdd8fa164be3ee94405d342b022bcded0d4f203e247108b5e368

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyroscope_otel-0.4.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

Hashes for pyroscope_otel-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3dec6c9f1fa7935bdf246ac41de7afdad96f5571d8d1fccd5ddca5897abd38fa
MD5 29d642870b5a674dd6a3b414f3ee23a2
BLAKE2b-256 f539f3175d6d93a0928729890b7c6d22167b7adfe648ab26a8d659227e62d90c

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