gRPC Python observability package
Project description
Package for gRPC Python Observability.
More details can be found in OpenTelemetry Metrics gRFC.
How gRPC Python Observability Works
gRPC Python is a wrapper layer built upon the gRPC Core (written in C/C++). Most of telemetry data is collected at core layer and then exported to Python layer. To optimize performance and reduce the overhead of acquiring the GIL too frequently, telemetry data is initially cached at the Core layer and then exported to the Python layer in batches.
Note that while this approach enhances efficiency, it will introduce a slight delay between the time the data is collected and the time it becomes available through Python exporters.
Supported Python Versions
Python >= 3.7
Installation
Currently gRPC Python Observability is only available for Linux.
Installing From PyPI
$ pip install grpcio-observability
Installing From Source
Building from source requires that you have the Python headers (usually a
package named python-dev
) and Cython installed. It further requires a
GCC-like compiler to go smoothly; you can probably get it to work without
GCC-like stuff, but you may end up having a bad time.
$ export REPO_ROOT=grpc # REPO_ROOT can be any directory of your choice $ git clone -b RELEASE_TAG_HERE https://github.com/grpc/grpc $REPO_ROOT $ cd $REPO_ROOT $ git submodule update --init $ cd src/python/grpcio_observability $ python -m make_grpcio_observability # For the next command do `sudo pip install` if you get permission-denied errors $ GRPC_PYTHON_BUILD_WITH_CYTHON=1 pip install .
Dependencies
gRPC Python Observability Depends on the following packages:
grpcio opentelemetry-api==1.21.0
Usage
You can find example usage in Python example folder.
We also provide several environment variables to help you optimize gRPC python observability for your particular use.
- GRPC_PYTHON_CENSUS_EXPORT_BATCH_INTERVAL
This controls how frequently telemetry data collected within gRPC Core is sent to Python layer.
Default value is 0.5 (Seconds).
- GRPC_PYTHON_CENSUS_MAX_EXPORT_BUFFER_SIZE
This controls the maximum number of telemetry data items that can be held in the buffer within gRPC Core before they are sent to Python.
Default value is 10,000.
- GRPC_PYTHON_CENSUS_EXPORT_THRESHOLD
This setting acts as a trigger: When the buffer in gRPC Core reaches a certain percentage of its capacity, the telemetry data is sent to Python.
Default value is 0.7 (Which means buffer will start export when it’s 70% full).
- GRPC_PYTHON_CENSUS_EXPORT_THREAD_TIMEOUT
This controls the maximum time allowed for the exporting thread (responsible for sending data to Python) to complete.
Main thread will terminate the exporting thread after this timeout.
Default value is 10 (Seconds).
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
Hashes for grpcio_observability-1.64.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1b5ec43477e5c8c26c9d609cb34ad1a8e029e51b38467130de7e76ef8a4efcf |
|
MD5 | d197ed76cc24bc728224f2352683d3d4 |
|
BLAKE2b-256 | 9da082a78cd3ebbd97cbe381ccd29aac898056f9ad84b920240f8e697634272f |
Hashes for grpcio_observability-1.64.1-cp312-cp312-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a68227bac5d046f7f582c8b6fda96abd01cf714615d36adc1210a07b5c212053 |
|
MD5 | 03d895266138c26a36ecd087f7518328 |
|
BLAKE2b-256 | c666249696b88d319b62ed54272a2f2233c2be741c1af3bc1751c8a19c1148fd |
Hashes for grpcio_observability-1.64.1-cp312-cp312-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6053fb692a3d84c89cac94fbdcdeba7d4eacaf37ba7d5dcae8a0852e53323db2 |
|
MD5 | d4658a5ba41f97b6dc14b863f35f8a1b |
|
BLAKE2b-256 | 7d1a2b9fe414d650fc0713b6782b34c5a6c636d7bf69772b121e5f328c972692 |
Hashes for grpcio_observability-1.64.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3de7857d48b3d4595ff4a12cd26d3cb3f725339954bc6ed8330a69b2cc9a4d4 |
|
MD5 | 21524614d8f6aa3433eec5d62cd0c129 |
|
BLAKE2b-256 | 6148825bc86d51e11854632c90da399f6c368775770f9e3a8254dbee74f4ac3a |
Hashes for grpcio_observability-1.64.1-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46acaea6093b6c5f9cc71caf556fd0ae9fdc1e579d19dae7042b28c8988e9458 |
|
MD5 | 5818a2a99b943b37b340d8a16393f127 |
|
BLAKE2b-256 | 5733db9f20425ff8ae88e934d3144a15f7c8bbee5eae9948d6d69d3689dca060 |
Hashes for grpcio_observability-1.64.1-cp312-cp312-manylinux_2_17_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd60573187b6d3670728a158f836103dc928f404f01ed52bf790418ff56e3a56 |
|
MD5 | f5555f2dca396149e8c7ef76f9ac0523 |
|
BLAKE2b-256 | 20c7ee407d5c367b5fdd0c16412e04dfb242dd12d888c0e2b36f310f121d2fb2 |
Hashes for grpcio_observability-1.64.1-cp312-cp312-linux_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c20f18d9f9877a73d12f9d2fec2b1938f77360b215ccf029e03c7c8bc7d861ab |
|
MD5 | 27a18671a4b105e10a63e2b1b62b4c9f |
|
BLAKE2b-256 | a0b94d8763854b1a299f26a8ba1fcad7c8b35827f51f3198620ed207bc0e0378 |
Hashes for grpcio_observability-1.64.1-cp311-cp311-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d74bace2f72934bd5f0c674c32db65e7d6239ebeca26b3614a4a4566bd53a82a |
|
MD5 | 11394b0b99094d63f18787c0d2d8452b |
|
BLAKE2b-256 | 86ec41375f6f0d385ce3326b18c8a685567a36ec057f5a0b574f264ef31d29f4 |
Hashes for grpcio_observability-1.64.1-cp311-cp311-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a42dc3060cf1379f8525582804235852d7a981ac78852c5a20c48cc2a4e10e0 |
|
MD5 | 2f2f0a9c498f4dd568273dae7f4e4cc5 |
|
BLAKE2b-256 | 49220cc1887baa296d18fc3c54221dff263dc84d6082413d85f7f8e41b2c18a5 |
Hashes for grpcio_observability-1.64.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9b30f3a29c559c3b5ffd4e96463a4bebce89d066445836ff7c94f534eb5d0fe |
|
MD5 | 00a4b7cb0740d6b123f8022ce53709d9 |
|
BLAKE2b-256 | 192e8c9960b68361787b6f3c478d6a2e2daa285df63f9a7d11da44fbaed2ab0e |
Hashes for grpcio_observability-1.64.1-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74857e93e2166c98216d98250dd21a63a1b70e3e0141aadc1cea4b7b0be46b63 |
|
MD5 | 3d99ec97cefb31543558dc48e116b90a |
|
BLAKE2b-256 | 24dc0b66b68d231d50a936d827871cb367f4abd51cf82c37ebbaa9c4ef168100 |
Hashes for grpcio_observability-1.64.1-cp311-cp311-manylinux_2_17_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b156e3ff5d077506a34bf34eea936d15e132371701fbb9a1d2cdd126b47695f9 |
|
MD5 | b57c5328d3c06521d8248fe0d9b9fd4e |
|
BLAKE2b-256 | 8bbb984bf61d36aef24c880e40fc0640d63bdc6e143512661cb14d1b7dba5d82 |
Hashes for grpcio_observability-1.64.1-cp311-cp311-linux_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cede4d6008edc2d40954c24e808b35652e161687aaf3eaa25fe72c485416ab90 |
|
MD5 | d2c6a309e78aeaef281a0fb3ce98487d |
|
BLAKE2b-256 | 8ec8be7e4b8c5d2a8b322358936f866eb09403e6623119a8e62d3fa5e91f6bdd |
Hashes for grpcio_observability-1.64.1-cp310-cp310-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 297db5fb7a4b1b4842eb02fbc4477937001c66dd31c970e9b6b1674c2ae61d18 |
|
MD5 | 80de840a9a6debc2abe6190473623e82 |
|
BLAKE2b-256 | edbf3916dd9501880f90e85c16b62b40f9425a25e62be581a3e9c8bfe71e55e1 |
Hashes for grpcio_observability-1.64.1-cp310-cp310-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 377cc03cbc862267d9e4b81507cfac23af9e3f8b66131c2f42eb380282ebb203 |
|
MD5 | 75e0ea86fb9c61fa3ab35c4509dcc6de |
|
BLAKE2b-256 | 06f02e30d112e0ec285c23e29c43749e19b61a44a5c2e4a983ee01d5e8917621 |
Hashes for grpcio_observability-1.64.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69f045264c41672ae57832b267577ad547e12bc93a1615c0c56fb434547176f3 |
|
MD5 | 0b62bba37630e9b94567a6d00b924a1f |
|
BLAKE2b-256 | f696848f7a8db81b5cb8240de95dd26dfd3e2f16c007f0de0a767649f333fb63 |
Hashes for grpcio_observability-1.64.1-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f1af9f04a4a53ece5c1d980ffb29d607148955fb2903b10a0b8d05ca0dad891 |
|
MD5 | 89d5e5b5c40d64cbc19141f0a94541b1 |
|
BLAKE2b-256 | 8a1770f373054181eb25add2a116906a3caeb21c5c0f67ab7ba3a20ca310ab50 |
Hashes for grpcio_observability-1.64.1-cp310-cp310-manylinux_2_17_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f09d27edb78a27b5164b0ac8df63fe9ce7939706a4aa4bbbf3a5f26fe1082cbc |
|
MD5 | 559809fbadcd754d9fbfbf6072622336 |
|
BLAKE2b-256 | 904336b1798162a7d78016f63b2be08fd3cc860751a3deb3afdea06a76127041 |
Hashes for grpcio_observability-1.64.1-cp310-cp310-linux_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2c213c677d0e33c5b88bcf5981c001b4beecc96631907e0e42f08384b61193b |
|
MD5 | d5c0d781a9cbf42209748570a6609f46 |
|
BLAKE2b-256 | 76cbf2ea55ad3dd48de638559588e2f9d9249a59fe37bcf0ff704f4c4d9b2f84 |
Hashes for grpcio_observability-1.64.1-cp39-cp39-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a2e9a72fd5c750686e9c47799971bda786de451d35333dc8415d4f4ea722c28 |
|
MD5 | 546e55774043b6efb09e056b4df9da7a |
|
BLAKE2b-256 | 44f6f6fa59a6dd06c6d2a953a5c334423540daa716dfd80299018364fc978049 |
Hashes for grpcio_observability-1.64.1-cp39-cp39-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6afc0912629dc1f723891aecad230ecf98e14e1cd01307a7a3d2a2e5f579308 |
|
MD5 | 11597cbab4e1ee3a4463d6d87f82d961 |
|
BLAKE2b-256 | 553a6385cea9fe98cf6e0805c355bb6850674d63fa015d223c916e4cab6fa2f5 |
Hashes for grpcio_observability-1.64.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d2d18a1b0b2d098cdc79d808a7dc5f6e7868079b83b16c8e45eeee9359b36bd |
|
MD5 | 048ee3858317bc1009e36d4807bdc830 |
|
BLAKE2b-256 | dbb484860c475521392a38400f015718d63365e3e7cd4b53fa19c01ff276a42c |
Hashes for grpcio_observability-1.64.1-cp39-cp39-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3a8179a0ad7c00823d1bf30671c60c9a1db11a2d53ea5c75caffbe328daae4b |
|
MD5 | 5cfed65fc9ff56b132dc1114ae748c54 |
|
BLAKE2b-256 | d993a64decc152b2d548d1a883a06589d62ad7cbc85a2133d81bd64ee7baada0 |
Hashes for grpcio_observability-1.64.1-cp39-cp39-manylinux_2_17_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 839a780af095374e2beed0048fcd034e3926cabf83b60e26a14e1908613a5f44 |
|
MD5 | 4b3956cb31d501c457bb2cabb5da4d8c |
|
BLAKE2b-256 | 62101069af1b6b602f2b01f3c9e8101b9343d82fe9668c8ad769d71c3b557546 |
Hashes for grpcio_observability-1.64.1-cp39-cp39-linux_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00ab2129ba7b407d3bfeec5da67952cdefb7bf743750336594275ddca4ab2454 |
|
MD5 | 864413ed006db392e34598bc621339e3 |
|
BLAKE2b-256 | 57dd23dcc8a7e6bb1f8409bc98a2c8e387cddef6ba4f2688f25881ed9cbfa621 |
Hashes for grpcio_observability-1.64.1-cp38-cp38-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b15e8b368b91a02391846c313e21a60a191b3c6d247f30f634e0b636e6293c64 |
|
MD5 | 7980cca3d7597e849268626c7f150365 |
|
BLAKE2b-256 | 50e5b7f17e408e852e0658851094f70eb2d9ec15aa5dda8fbcf389b3b24267c9 |
Hashes for grpcio_observability-1.64.1-cp38-cp38-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ffd6b9d6be08808bbe71828cb75773bdd8574a9c6d67d18e9179e14829dd3a92 |
|
MD5 | f5ddb7e022d50776e272de7407405a4c |
|
BLAKE2b-256 | 9e333a92c73643e1f06707f324bb3390bea02ef8939969a2eaebaccf5e2bbc20 |
Hashes for grpcio_observability-1.64.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e94ec559b65fe4f7b02a8a72e49079d64a69d97ed4e533b864e929aa9be327d8 |
|
MD5 | 0e7146a7f2c008cc8fd0bc933f3add04 |
|
BLAKE2b-256 | 6dd381daecf48e1ecc3912f2d4aa6893bc119faf7385f0f236dbfaf8e6ce0612 |
Hashes for grpcio_observability-1.64.1-cp38-cp38-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ad0aa19049471f69ac5d7765698aaf818d18bcf8970c8876e84f54ed30270df |
|
MD5 | 84189d92dd3363e42f97550258d4e97d |
|
BLAKE2b-256 | 28faab20e319d711f99e0a29fda56d0c3b3bb499f7230dc45e38a0e64fe094ba |
Hashes for grpcio_observability-1.64.1-cp38-cp38-manylinux_2_17_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f456547392d942365ed02484a9584a9cd6f4035941f56eeeac8e9337ee6798c3 |
|
MD5 | 0d7c8ad807a0d2afecc534a719bd1959 |
|
BLAKE2b-256 | 8b5b4b1f485457eb298d5d3dfe0df21a694892b6fd566b5086875913856abb8b |
Hashes for grpcio_observability-1.64.1-cp38-cp38-linux_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6d25ecdd3a5d284e855580b5060bbe3d5c1725903f092f82719e8fdc6d4b927 |
|
MD5 | 3af62f6608fa89abdf9cd7fb040c3d85 |
|
BLAKE2b-256 | 15f48165d6fe79e4aa9fee67912aa7c9b1ea466bb972f5158239e0ce3a439802 |