Pyroscope integration for Python
Project description
Pyroscope Python Integration
What is Pyroscope
Pyroscope is a tool that lets you continuously profile your applications to prevent and debug performance issues in your code. It consists of a low-overhead agent which sends data to the Pyroscope server which includes a custom-built storage engine. This allows for you to store and query any applications profiling data in an extremely efficient and cost effective way.
How to install Pyroscope for Python Applications
pip install pyroscope-io
Basic Usage of Pyroscope
import pyroscope_io as pyroscope
pyroscope.configure(
app_name = "my.python.app", # replace this with some name for your application
server_address = "http://my-pyroscope-server:4040", # replace this with the address of your pyroscope server
)
Adding Tags
Tags allow for users to view their data at different levels of granularity depending on what "slices" make sense for their application. This can be anything from region or microservice to more dynamic tags like controller or api route.
import os
import pyroscope_io as pyroscope
pyroscope.configure(
app_name = "simple.python.app",
server_address = "http://my-pyroscope-server:4040",
tags = {
"hostname": os.getenv("HOSTNAME"),
}
)
# You can use a wrapper:
with pyroscope.tag_wrapper({ "controller": "slow_controller_i_want_to_profile" }):
slow_code()
Examples
For more examples see examples/python in the main repo.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyroscope-io-0.4.2.tar.gz.
File metadata
- Download URL: pyroscope-io-0.4.2.tar.gz
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.10 CPython/3.9.7 Linux/4.14.186-146.268.amzn2.x86_64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a7ef90e940d54d8187a1264f353579cfb188d1b35f2dd102ccd15112b424afa
|
|
| MD5 |
7e55a2b39b3c16dafe046c57f7d5197b
|
|
| BLAKE2b-256 |
25863cc422b507e4f648d2fb2017993afdc4eee646235f47262de92e1464e515
|
File details
Details for the file pyroscope_io-0.4.2-cp39-cp39-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: pyroscope_io-0.4.2-cp39-cp39-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 8.3 MB
- Tags: CPython 3.9, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.10 CPython/3.9.7 Linux/4.14.186-146.268.amzn2.x86_64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1f46d5e59fbff9b697bffefa3e15d87aa7bb97fa7c8ef6e670058897ca012b47
|
|
| MD5 |
cfba7452d90b1b730640b20bfa3a8483
|
|
| BLAKE2b-256 |
620e2ea82c21c60cb5ace676d771305aece92a0a57863237f91774caf6a7883c
|
File details
Details for the file pyroscope_io-0.4.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: pyroscope_io-0.4.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 7.4 MB
- Tags: CPython 3.9, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.10 CPython/3.9.7 Linux/4.14.203-156.332.amzn2.aarch64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f5d691dda952b30f3657ff7c664cc7795b71eef56258700535dc207ec25e54e1
|
|
| MD5 |
9000e9785398feeb2d1262244e0127c5
|
|
| BLAKE2b-256 |
3ae274dffe359e9433c9e08c30991d4929e3be2fb252e91b5229b49b1ebedca5
|
File details
Details for the file pyroscope_io-0.4.2-cp39-cp39-macosx_11_0_arm64.whl.
File metadata
- Download URL: pyroscope_io-0.4.2-cp39-cp39-macosx_11_0_arm64.whl
- Upload date:
- Size: 5.6 MB
- Tags: CPython 3.9, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.7 CPython/3.9.6 Darwin/20.3.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3a527d1a6651b566e70b5428f0e14de337a8473131bf0a4a820e2620e7002ae6
|
|
| MD5 |
80bbdfdb117323b26dfb3546aed82bc7
|
|
| BLAKE2b-256 |
709c786c5a23ef1b414a927b742e1abe5c2e880a4fe4c6f3a6935162222f6f81
|
File details
Details for the file pyroscope_io-0.4.2-cp39-cp39-macosx_10_14_x86_64.whl.
File metadata
- Download URL: pyroscope_io-0.4.2-cp39-cp39-macosx_10_14_x86_64.whl
- Upload date:
- Size: 6.0 MB
- Tags: CPython 3.9, macOS 10.14+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.7 CPython/3.9.7 Darwin/18.5.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1401b3152d0b62a941005bae761b2f6d252b672c2283b1e8d9aa3218f0530554
|
|
| MD5 |
4da24f133e4b662c039a0855625be4f9
|
|
| BLAKE2b-256 |
39d1c22df03bbe9d796f35119a8644522c9e6468c59dfb5877878e87c5f4b6e6
|
File details
Details for the file pyroscope_io-0.4.2-cp38-cp38-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: pyroscope_io-0.4.2-cp38-cp38-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 8.3 MB
- Tags: CPython 3.8, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.10 CPython/3.8.12 Linux/4.14.186-146.268.amzn2.x86_64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9663e61e795f53a6a311d5c3a2bf957d5e0774f7c998ed38c2b1cbdd99f9bd95
|
|
| MD5 |
e803d0a5dccadac28f0dd8d39e8ba89b
|
|
| BLAKE2b-256 |
73be282b84c1f9a130a3c26f997ca101696b8842608dd56434b3c8f0669615a9
|
File details
Details for the file pyroscope_io-0.4.2-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: pyroscope_io-0.4.2-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 7.4 MB
- Tags: CPython 3.8, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.10 CPython/3.8.12 Linux/4.14.203-156.332.amzn2.aarch64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b2c967872fb7204eb138dfb9615c44cd38837925cf9f8c80c4efb152e771046
|
|
| MD5 |
12b3db86bcca2a234f4132c0a698b40b
|
|
| BLAKE2b-256 |
776fec6d5736313c8969940bf3396c8f87b45269e1cdfb89a5891b7ae6e864c7
|
File details
Details for the file pyroscope_io-0.4.2-cp38-cp38-macosx_11_0_arm64.whl.
File metadata
- Download URL: pyroscope_io-0.4.2-cp38-cp38-macosx_11_0_arm64.whl
- Upload date:
- Size: 5.6 MB
- Tags: CPython 3.8, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.7 CPython/3.8.11 Darwin/20.3.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d36160006f04f08b6044aa9ef9dd867dcaa8519b892d19fd99a3af6945c4ecff
|
|
| MD5 |
9cf6a1ea91a6c399a3e6ef4103ec09fc
|
|
| BLAKE2b-256 |
18584e0fa3bb96275451b938bf69ea30db32999ec6166a3b4306c181c3a5252b
|
File details
Details for the file pyroscope_io-0.4.2-cp38-cp38-macosx_10_14_x86_64.whl.
File metadata
- Download URL: pyroscope_io-0.4.2-cp38-cp38-macosx_10_14_x86_64.whl
- Upload date:
- Size: 6.0 MB
- Tags: CPython 3.8, macOS 10.14+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.8 CPython/3.8.12 Darwin/18.5.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9c24af3f32c87924e8bd2ce0512aa669d5c91631e84f11db0b7416d13746e55a
|
|
| MD5 |
2ca8e5d3fb234b2212699b27c1b6f7f8
|
|
| BLAKE2b-256 |
a3064f28314775e38322f74ed074616a91aebbc2611bdd7b286db1e3c502abc8
|
File details
Details for the file pyroscope_io-0.4.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: pyroscope_io-0.4.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 8.3 MB
- Tags: CPython 3.7m, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.10 CPython/3.7.12 Linux/4.14.186-146.268.amzn2.x86_64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4518ffa76d42d7604fde108396d3352ebe6e3a9346bbdc855481c2b44092b131
|
|
| MD5 |
6a5452ce7ee62a211d353c51b1b8cdd4
|
|
| BLAKE2b-256 |
d6aebbafd12b9c4350c76a81834d1fa6ecbbde329e601f1f13c1444684e60f59
|
File details
Details for the file pyroscope_io-0.4.2-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: pyroscope_io-0.4.2-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 7.4 MB
- Tags: CPython 3.7m, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.10 CPython/3.7.12 Linux/4.14.203-156.332.amzn2.aarch64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c13b3eaa8acaa673a5c639afb7c0a3f3c4e4e3563f8eebf93be9c2c8183e1a50
|
|
| MD5 |
1040b85fa457a3b2125502fb8b6b1df1
|
|
| BLAKE2b-256 |
66b27408f1866d125971c6cc343e3daa553060bd8950131785a5b75f993c2e35
|
File details
Details for the file pyroscope_io-0.4.2-cp37-cp37m-macosx_10_14_x86_64.whl.
File metadata
- Download URL: pyroscope_io-0.4.2-cp37-cp37m-macosx_10_14_x86_64.whl
- Upload date:
- Size: 6.0 MB
- Tags: CPython 3.7m, macOS 10.14+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.8 CPython/3.7.12 Darwin/18.5.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3eac07ee8142c33701292b9ba00e76adab209c5cd07aa3f0e4234af081324ff7
|
|
| MD5 |
c33e4aaad99edfe62295fea7aade1c36
|
|
| BLAKE2b-256 |
927075f57be5bf02d430aeb9af7672e1c9f2be74f15f5376a8b1b4620d74b557
|
File details
Details for the file pyroscope_io-0.4.2-cp36-cp36m-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: pyroscope_io-0.4.2-cp36-cp36m-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 8.3 MB
- Tags: CPython 3.6m, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.10 CPython/3.6.15 Linux/4.14.186-146.268.amzn2.x86_64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3991b442dff5cb993293a3e88f116e44bf2aa77efe2d8374e63e0838bde667d1
|
|
| MD5 |
a24269b1660b404982a2c623cc131736
|
|
| BLAKE2b-256 |
04effb02581d252e14f45ba03d39a38772045def8be38a8aebf78558614d389f
|
File details
Details for the file pyroscope_io-0.4.2-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: pyroscope_io-0.4.2-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 7.4 MB
- Tags: CPython 3.6m, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.10 CPython/3.6.15 Linux/4.14.203-156.332.amzn2.aarch64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
77cf50cd1f16b8676272c9c6f30e8b1bd813956520746bec3170c16248e0892a
|
|
| MD5 |
80d92b26a9fa2d2e887dabb3f3c40134
|
|
| BLAKE2b-256 |
061548ce9d4ef48b181775f47fa3d5e25710f4f32cfb6b4bdfc97891bec9d13b
|