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

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_eventiq-0.1.0.tar.gz
Algorithm Hash digest
SHA256 dbeae6d605b0aece864ba4795c94f1f2e77f4f38bbcd06ebf59a206777d32434
MD5 325d6badef1172aab29aff5684fa9371
BLAKE2b-256 f6deb8e0cb18020036076d059c6fc8fae3d561b9f11170b233e8bb68a467260c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_eventiq-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4f905be87ee9766532609f89c74ca884e80f15d78af5ba007758597bea6f3ff1
MD5 1c5ec8627e727173c3169b446fd80a6e
BLAKE2b-256 7f395840b412dcba1ae04978ff5c0cd35df250bd825cfab41ba1883b026bfd9b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page