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 Distribution

pyroscope_beta-0.3.1.tar.gz (9.2 kB view details)

Uploaded Source

Built Distributions

pyroscope_beta-0.3.1-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

pyroscope_beta-0.3.1-py2.py3-none-macosx_11_0_arm64.whl (2.3 MB view details)

Uploaded Python 2 Python 3 macOS 11.0+ ARM64

pyroscope_beta-0.3.1-py2.py3-none-macosx_10_15_x86_64.whl (2.3 MB view details)

Uploaded Python 2 Python 3 macOS 10.15+ x86-64

File details

Details for the file pyroscope_beta-0.3.1.tar.gz.

File metadata

  • Download URL: pyroscope_beta-0.3.1.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for pyroscope_beta-0.3.1.tar.gz
Algorithm Hash digest
SHA256 c360279c418d1a82e4f15ea4ff89f2a5698c9c29036ce1b020d045a5519aa478
MD5 79087a21a1d185304b28ccebc3ca7869
BLAKE2b-256 2b978e916b3f0085a4fa5c2d96ed54675205131e36c76d3f88744b61c50626ee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyroscope_beta-0.3.1-py2.py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 c766bdbcc01e8b700358d23d1701f9f81b2ca469c3eee7f86daf305de5261b5d
MD5 154bd74668d394d4cea3b624f3dd094c
BLAKE2b-256 5630d47e46d8929c7a5ea34028acb542f887b23fb0778e62bf8b98de010d664d

See more details on using hashes here.

File details

Details for the file pyroscope_beta-0.3.1-py2.py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pyroscope_beta-0.3.1-py2.py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c2f1360838701406b95ce0d8bdb7d056a586c5c8478c6c665fcf17e33d1aafac
MD5 5c8df1459ba3bcf8f10f132f02785f5c
BLAKE2b-256 a2e3d79d13c0778de6ab2fdb628e723df00147ff34e59cb4b449fb627ef34ba7

See more details on using hashes here.

File details

Details for the file pyroscope_beta-0.3.1-py2.py3-none-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for pyroscope_beta-0.3.1-py2.py3-none-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 3ae6f224c290d8907bd410182e52e3ded2f8199c3be1a8881fa614eac68ab507
MD5 2dc79eb5593c51234014de31abb9655b
BLAKE2b-256 ee794fc203d5baaf8f5abfc9b6d4d9afdef4c8f1723845348f6e470b77b56827

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