Skip to main content

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


Download files

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

Source Distribution

pyroscope-io-0.4.0.tar.gz (7.2 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

pyroscope_io-0.4.0-cp39-cp39-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl (8.3 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64manylinux: glibc 2.5+ x86-64

pyroscope_io-0.4.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (7.4 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ ARM64

pyroscope_io-0.4.0-cp39-cp39-macosx_11_0_arm64.whl (5.6 MB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

pyroscope_io-0.4.0-cp39-cp39-macosx_10_14_x86_64.whl (6.0 MB view details)

Uploaded CPython 3.9macOS 10.14+ x86-64

pyroscope_io-0.4.0-cp38-cp38-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl (8.3 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64manylinux: glibc 2.5+ x86-64

pyroscope_io-0.4.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (7.4 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ ARM64

pyroscope_io-0.4.0-cp38-cp38-macosx_11_0_arm64.whl (5.6 MB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

pyroscope_io-0.4.0-cp38-cp38-macosx_10_14_x86_64.whl (6.0 MB view details)

Uploaded CPython 3.8macOS 10.14+ x86-64

pyroscope_io-0.4.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl (8.3 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.17+ x86-64manylinux: glibc 2.5+ x86-64

pyroscope_io-0.4.0-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (7.4 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.17+ ARM64

pyroscope_io-0.4.0-cp37-cp37m-macosx_10_14_x86_64.whl (6.0 MB view details)

Uploaded CPython 3.7mmacOS 10.14+ x86-64

pyroscope_io-0.4.0-cp36-cp36m-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl (8.3 MB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.17+ x86-64manylinux: glibc 2.5+ x86-64

pyroscope_io-0.4.0-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (7.4 MB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.17+ ARM64

File details

Details for the file pyroscope-io-0.4.0.tar.gz.

File metadata

  • Download URL: pyroscope-io-0.4.0.tar.gz
  • Upload date:
  • Size: 7.2 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

Hashes for pyroscope-io-0.4.0.tar.gz
Algorithm Hash digest
SHA256 be9f3a2fa16d7e7851868f2e3ca9c4c93c3b0f62de1bddf3668d492834e37659
MD5 41cc354d9fa500af666c9e33e094be12
BLAKE2b-256 a63a800b212d0a4d788e72138fb4c81aa7ee72e8e3c2268778e332f5de554073

See more details on using hashes here.

File details

Details for the file pyroscope_io-0.4.0-cp39-cp39-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyroscope_io-0.4.0-cp39-cp39-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 53fbd6d552c2f73d37262ebb7f6cf07ad75f4a9bf64efc0338d048693aeb4825
MD5 0c538053a7bf780d8b77b0e35fad44f3
BLAKE2b-256 1c9de73e49c3b5a6b5012434914a93105f5d7967ccaccab79c3120ac0ec69377

See more details on using hashes here.

File details

Details for the file pyroscope_io-0.4.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for pyroscope_io-0.4.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 37364c381627cd53cd8e33b131cfab331e43a908b292f885a98a9aea06a1117e
MD5 f0fe4096374ca5cb623de8dc281d5c2e
BLAKE2b-256 b22515a31e5b0e16a92baf15e1dc1dd3b1487cf8c63194eec9a8dac8c86495c1

See more details on using hashes here.

File details

Details for the file pyroscope_io-0.4.0-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pyroscope_io-0.4.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4e9259bafa01ad71d57671cb51313b150919b94998214c18978dc187e1134aa2
MD5 4833bc52286e5de41f2dc3d2c7ef3b01
BLAKE2b-256 cff258108e324f8e6ded2b4ce3af2af4931bf87453f088b89ff1330bafe98027

See more details on using hashes here.

File details

Details for the file pyroscope_io-0.4.0-cp39-cp39-macosx_10_14_x86_64.whl.

File metadata

File hashes

Hashes for pyroscope_io-0.4.0-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 f20b85ea31286d796c84aec65acd3a73af5661e40d69bdda8d0a4e90d36a43a1
MD5 075f3b0ac8df4e1a474919b2cc6a228f
BLAKE2b-256 b5542dbe1d026ab21d1ed1db0f61ea636562850c80ad003c1579f4f05fac3f8c

See more details on using hashes here.

File details

Details for the file pyroscope_io-0.4.0-cp38-cp38-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyroscope_io-0.4.0-cp38-cp38-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 039854fc97c836c06500f8c307dcb324aa6d29067be152350a57e6836630c439
MD5 4c2f9f8c84b62626d9c9c2e4ee73e214
BLAKE2b-256 c279a83b80782d027c678d3c5d6233b82300de5733ea822f220ebbdef475b137

See more details on using hashes here.

File details

Details for the file pyroscope_io-0.4.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for pyroscope_io-0.4.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 4eff6a3a73ca564033e1e0cd5cdc23ae04d399f124a178deaca37b1de3152765
MD5 2033e1968312a2f5e0008215ef0b4b91
BLAKE2b-256 6b6a9e833f75b08e5246d5bf662340da63790651bab16907f8c6ffcdfe6b506e

See more details on using hashes here.

File details

Details for the file pyroscope_io-0.4.0-cp38-cp38-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pyroscope_io-0.4.0-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7221fccac28b7d6bb35e8790be21d28301ede0b91cbbc3e0412449805abcc111
MD5 0c03dcb34c3f0aa28d820686567f9bb9
BLAKE2b-256 35ff4be115575e708fe4848d8682fc6629bfb6e5a515b0acae006fcc8fef88f9

See more details on using hashes here.

File details

Details for the file pyroscope_io-0.4.0-cp38-cp38-macosx_10_14_x86_64.whl.

File metadata

File hashes

Hashes for pyroscope_io-0.4.0-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 55551c5a282a8b2bb5de9ceda1c4827c0caece16951b059b1864f6bd10080f4a
MD5 aad816b717c8164c9f94f6b629093105
BLAKE2b-256 628c2a843b9d3904b9b9c23656602889f98934050017217266c9caa9f3787d55

See more details on using hashes here.

File details

Details for the file pyroscope_io-0.4.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyroscope_io-0.4.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a292adda8663757f6474627549dc62de1d61cc7fcaeef7f2fe56d4e8dd08be23
MD5 fb577ff4ff12d17ad381f9735d7d41c7
BLAKE2b-256 3aaa35291e12c276346975a5dc1fdbb16bbcc9b7fd64ce8165700e336863a706

See more details on using hashes here.

File details

Details for the file pyroscope_io-0.4.0-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for pyroscope_io-0.4.0-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 ad30faad320418e306c6fa5aa621d80aa2627659a6210ec78cd38549a9b55b14
MD5 c5b0f4d3244692a86a310ab2262c0053
BLAKE2b-256 c5e9ce6c1d1be2edfcfd34d3e3fbe17215dfbdbfd63381a59ee9a739bc061b8f

See more details on using hashes here.

File details

Details for the file pyroscope_io-0.4.0-cp37-cp37m-macosx_10_14_x86_64.whl.

File metadata

File hashes

Hashes for pyroscope_io-0.4.0-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 748c85d8ce578ce611a3ed6f0cfc77cf1a8836901e6309eeb885f4b5857aad2f
MD5 0098be5a06f276113d60a78983f5c116
BLAKE2b-256 00a1d589a9365e2535f0430b27db003f866524473204ac66c5f12bea0e14c4f3

See more details on using hashes here.

File details

Details for the file pyroscope_io-0.4.0-cp36-cp36m-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyroscope_io-0.4.0-cp36-cp36m-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b26daaaca62484a88fc59a71e6f4f6d4b696478b383608370967cbe6e07a4431
MD5 ee5cf42c9bd1e3bf7c5e78e6246d0d73
BLAKE2b-256 21d4e855dbc2c8ab39b482de99b5018e38dc82f0c75c8b7d1de16300974a294b

See more details on using hashes here.

File details

Details for the file pyroscope_io-0.4.0-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for pyroscope_io-0.4.0-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 533286596b0a2a8bf02a9060da707f4ebd8ca910d64a1dd20fd9640831b769d2
MD5 ba0b2bfb1f234f7306f169ad30f6d3af
BLAKE2b-256 b23356d3b3cc9fb01ef10d02acf6782b82b4baa68eec1013c24a8f71b61c2d45

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page