Observability tools for Python applications with OpenTelemetry integration
Project description
obsv-tools
Observability tools for Python applications with OpenTelemetry integration.
Features
- Easy-to-use instrumentator for metrics collection
- OpenTelemetry integration
- Prometheus metrics export
- Simple counter and histogram support
Installation
pip install obsv-tools
Quick Start
import obsv_tools.metrics.instrumentator
# Create an instrumentator instance
instrumentator = obsv_tools.metrics.instrumentator.Instrumentator(
server_port=8000,
meter_name='my_app_metrics',
)
# Add metrics
instrumentator.add_counter(
name='my_counter',
description='A simple counter',
).add_histogram(
name='my_histogram',
description='A simple histogram',
)
# Start the metrics server
instrumentator.start()
# Use the metrics
instrumentator.increment_counter('my_counter', attributes={})
instrumentator.record_histogram('my_histogram', 1.0, attributes={})
Requirements
- Python >= 3.12
License
MIT License - see LICENSE file for details.
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
obsv_tools-0.1.0.tar.gz
(29.8 kB
view details)
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 obsv_tools-0.1.0.tar.gz.
File metadata
- Download URL: obsv_tools-0.1.0.tar.gz
- Upload date:
- Size: 29.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
62d6f4782fb61b1209ff0f421b2cd1272adb29eaa804d3e54c2cf44ff8966a1c
|
|
| MD5 |
77fb64a33981b45bf719b7c9f9c0feff
|
|
| BLAKE2b-256 |
62cb31d511c5f4db267b8929a485d4aca12c698947acd85bcf5552b109f32110
|
File details
Details for the file obsv_tools-0.1.0-py3-none-any.whl.
File metadata
- Download URL: obsv_tools-0.1.0-py3-none-any.whl
- Upload date:
- Size: 27.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2e67d6a25d666213ec92bc9913498783c08f15d8b1b6497bd5dde241b3c98b6a
|
|
| MD5 |
21bdb1f49b84bcf393ec05cc5233a6be
|
|
| BLAKE2b-256 |
e648cd099bf22a104fad02bc9c48e0776395fd50fd00f0819e62286c69989e14
|