OpenTelemetry utilities by Vaxila
Project description
OpenTelemetry utilities for Python by Vaxila
This repository contains a set of utilities for OpenTelemetry for Python.
Installation
pip install vaxila-opentelemetry-util
Usage
Add local variables to attributes of exception's event
from vaxila.opentelemetry.util import enable_exc_local_variables_recording
enable_exc_local_variables_recording()
When exception is raised, OpenTelemetry automatically creates an event for exception.
enable_exc_local_variables_recording() adds local variables to the event's attributes automatically by decorating Span.record_exception().
This helps you find the situation where exception happened.
You can see example here.
:warning: When using pre-fork server like Gunicorn, you should call enable_exc_local_variables_recording() before fork to not run same thing multiple times.
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 Distribution
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 vaxila_opentelemetry_util-0.0.1.tar.gz.
File metadata
- Download URL: vaxila_opentelemetry_util-0.0.1.tar.gz
- Upload date:
- Size: 10.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d09392ca8c6f59a4daf7de365326ce4d1ec1f3a3f20abde85df1909539ccca69
|
|
| MD5 |
366d2e94e8a0878fbdc5a3101670b717
|
|
| BLAKE2b-256 |
919186aa2110176388e40dbab59f7b6750f3276cc4b3cf43dd37b245e286295a
|
File details
Details for the file vaxila_opentelemetry_util-0.0.1-py3-none-any.whl.
File metadata
- Download URL: vaxila_opentelemetry_util-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5e7fbfa27e82a521f36a570ac28cb6b5245ca34bb774560a92ac4df8dd421cc1
|
|
| MD5 |
848ed06db378726eb4e634084d2b32d7
|
|
| BLAKE2b-256 |
0fc07aceb3d5481cbecfb94e88d6e935ee97deec3bed0a9526f2077ecf87c5fa
|