Skip to main content

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


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)

Uploaded Source

Built Distribution

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

obsv_tools-0.1.0-py3-none-any.whl (27.5 kB view details)

Uploaded Python 3

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

Hashes for obsv_tools-0.1.0.tar.gz
Algorithm Hash digest
SHA256 62d6f4782fb61b1209ff0f421b2cd1272adb29eaa804d3e54c2cf44ff8966a1c
MD5 77fb64a33981b45bf719b7c9f9c0feff
BLAKE2b-256 62cb31d511c5f4db267b8929a485d4aca12c698947acd85bcf5552b109f32110

See more details on using hashes here.

File details

Details for the file obsv_tools-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for obsv_tools-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2e67d6a25d666213ec92bc9913498783c08f15d8b1b6497bd5dde241b3c98b6a
MD5 21bdb1f49b84bcf393ec05cc5233a6be
BLAKE2b-256 e648cd099bf22a104fad02bc9c48e0776395fd50fd00f0819e62286c69989e14

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