Skip to main content

OpenTelemetry utilities by Vaxila

Project description

OpenTelemetry utilities for Python by Vaxila

PyPI version

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


Download files

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

Source Distribution

vaxila_opentelemetry_util-0.0.1.tar.gz (10.1 kB view details)

Uploaded Source

Built Distribution

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

vaxila_opentelemetry_util-0.0.1-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file vaxila_opentelemetry_util-0.0.1.tar.gz.

File metadata

File hashes

Hashes for vaxila_opentelemetry_util-0.0.1.tar.gz
Algorithm Hash digest
SHA256 d09392ca8c6f59a4daf7de365326ce4d1ec1f3a3f20abde85df1909539ccca69
MD5 366d2e94e8a0878fbdc5a3101670b717
BLAKE2b-256 919186aa2110176388e40dbab59f7b6750f3276cc4b3cf43dd37b245e286295a

See more details on using hashes here.

File details

Details for the file vaxila_opentelemetry_util-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for vaxila_opentelemetry_util-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5e7fbfa27e82a521f36a570ac28cb6b5245ca34bb774560a92ac4df8dd421cc1
MD5 848ed06db378726eb4e634084d2b32d7
BLAKE2b-256 0fc07aceb3d5481cbecfb94e88d6e935ee97deec3bed0a9526f2077ecf87c5fa

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