You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

pyroscope-otel

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pyroscope-otel

A library providing profiling functionalities related to OpenTelemetry

0.4.1
pipPyPI
Maintainers
1

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)

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts