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.1.tar.gz.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_eventiq-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b432446889083271c388aa85db1e2ea6997b37a987ab2ae5ba6c9c4c41294ed1
MD5 63f3820c50f84878c6603afce510261e
BLAKE2b-256 027a15d562a5fb6ed6dd8a597cc8b615d7473cc8fc7f033a88a52e7979d0c193

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_eventiq-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a14892e1ccca24d8fd8c3cde7001dc66cc470dbe44ea8a16b13ed0212179d0d2
MD5 cf5f9d6727f9fb578b81723ee53fd74e
BLAKE2b-256 7498dfcf234d4c9dd4c861e4923e4aaaa8c05cf2d4c159dad0072605560d3601

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