Skip to main content

Opentelemetry instrumentation for eventiq

Project description

Tests Build License Mypy Ruff security: bandit Python Format PyPi

opentelemetry-instrumentation-eventiq

Opentelemetry instrumentation for eventiq

Installation

pip install opentelemetry-instrumentation-eventiq

Usage

from eventiq import Service
from opentelemetry.instrumentation.eventiq import EventiqInstrumentor, TraceContextCloudEvent, OpenTelemetryTracingMiddleware

EventiqInstrumentor().instrument()
# or directly instrument a service instance
service = Service(...)
EventiqInstrumentor().instrument_service(service)
# or by manually adding middleware
service.add_middleware(OpenTelemetryTracingMiddleware)

@service.subscribe(topic="example.topic")
async def handler(message: TraceContextCloudEvent):
    print(message.data, message.tracecontext)

Classes

  • EventiqInstrumentor - Opentelemetry instrumentor for eventiq
  • OpenTelemetryTracingMiddleware - Middleware for tracing messages with OpenTelemetry
  • OpenTelemetryMetricsMiddleware - Middleware for exporting metrics with OpenTelemetry
  • TraceContextCloudEvent - CloudEvent extension for OpenTelemetry trace context

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

Built Distribution

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

File details

Details for the file opentelemetry_instrumentation_eventiq-0.1.5.tar.gz.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_eventiq-0.1.5.tar.gz
Algorithm Hash digest
SHA256 1bddcb34451fcd446e4454afcfffd421787c272739dd9d4bb5a4b3a17595fe0f
MD5 04bfd35188460b2ce4f3674e4e8d0927
BLAKE2b-256 93f6dbf34745bc54932ef2de30e3078beedca58ecade3d5e2797a0793d97f7d6

See more details on using hashes here.

File details

Details for the file opentelemetry_instrumentation_eventiq-0.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_eventiq-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 b043ba67c502acc11a91044994cd5baac6519fe9cf453fd5188e4da43ad78ecb
MD5 a8d7c3a89d9cc6d9c6a1de42c893c082
BLAKE2b-256 2c133ecfbda186c425e950b16a4a277a6bbb9df349789d43e04b41ff37288845

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