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
- 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
- libunwind8-dev is also required. For Ubuntu:
apt-get install -y libunwind8-dev
- Building/Insalling from PyPi package
pip install pyroscope_beta
- 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
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
- Download URL: pyroscope_beta-0.0.4-py2.py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
- Upload date:
- Size: 5.1 MB
- Tags: Python 2, Python 3, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 727137f516b7515df1d952e15269f3f31634878b479fb612e1b6c58c9a6d95c6 |
|
MD5 | edf591883851ac4d863da5500bf50573 |
|
BLAKE2b-256 | 58d66f05cc769db85d80fe50ea0a1f5a78168ca2e579c0765c172b9ba9f7f7ae |