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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_eventiq-0.1.3.tar.gz
Algorithm Hash digest
SHA256 e6ad4818673672a0fa9920340f68a84f2d318a71ec58ad40d4548f487cf98c7d
MD5 10047448ce00b84c92569b08dcf038b7
BLAKE2b-256 e70f8226fcfbdbd58a24abaa1267cf0939a2d0cdc1417dd9ca45b002efcbc84e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_eventiq-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 26cf6c664fe7acf7d02ce7bc7bf40e9a0282dc438e4e175e0da4570f3a1c5509
MD5 38c7642b42744fc67a986fce5d09af7f
BLAKE2b-256 3e2c32a307af6939546fb45e07e091ad10b09942d0ed208c85e67db0e6a2ce09

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