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.4-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.4-py2.py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for pyroscope_beta-0.0.4-py2.py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 727137f516b7515df1d952e15269f3f31634878b479fb612e1b6c58c9a6d95c6
MD5 edf591883851ac4d863da5500bf50573
BLAKE2b-256 58d66f05cc769db85d80fe50ea0a1f5a78168ca2e579c0765c172b9ba9f7f7ae

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