Skip to main content

Pyroscope Python integration

Project description

Pyroscope Python Integration --Beta--

note: This is a beta release. It requires local compilation, might be buggy and is frequently updated. For the initial implementation, find it here. Please report any issues.

Installation

  1. You need the Rust toolchain to compile the library locally. To install Rust:
curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain stable -y 
export PATH=$PATH:/root/.cargo/bin
  1. libunwind8-dev is also required. For Ubuntu:
apt-get install -y libunwind8-dev 
  1. Building/Insalling from PyPi package
pip install pyroscope_beta
  1. Building/Installing from source

Change directory to pyroscope_ffi/python and run

make install

Configuration

Configuration is similar to the old package except for application_name:

import pyroscope_beta

pyroscope_beta.configure(
  application_name       = "python.app",
  server_address         = "http://localhost:4040",

  tags = {
    "key": "value",
  }
)

Adding tags

Tags passed to configure are global. To tag code locally, you can use:

with pyroscope_beta.tag_wrapper({ "profile": "profile-1" }):
    // Tagged profile

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

pyroscope_beta-0.0.2-py2.py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (5.1 MB view details)

Uploaded Python 2 Python 3 manylinux: glibc 2.12+ x86-64

File details

Details for the file pyroscope_beta-0.0.2-py2.py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for pyroscope_beta-0.0.2-py2.py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 9decaa14322afaca3f583aa8692d8a3f432257b74bad19078ce879faebb63783
MD5 4048047e3162e5adbfe37e82c303f1de
BLAKE2b-256 ba4ee4d41dfe8463007c49ed5898295ed1cf45f4483dca90946fcb86e51f2453

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