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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_eventiq-0.1.2.tar.gz
Algorithm Hash digest
SHA256 a62a1f6067aa1b9c28ced2971e6cd689813650fe26d21261671d6580241ce716
MD5 810795b4956eadc1b10fa137644261a0
BLAKE2b-256 35c1bfb6396bdc51f55b7afe6e6ace5eb7fc9a2ad2277ed271555097c87d3efa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_eventiq-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 55354fd7c1a9216dfc3b26cff86d2343e5e471deeb596e3bd3b53a494c91a565
MD5 04d708f368223f9a33fd3a1e2dfa40bd
BLAKE2b-256 2243916dd0ea9a1ccfa056f01d41c82235ba1d603d3a0d13cc1abafc27e7b374

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