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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_eventiq-0.0.1.tar.gz
Algorithm Hash digest
SHA256 df52562e92127823a09e460c2e01eaaafa5e35dcd1d8b11ed8b3368d57cf1d0b
MD5 ab8233ac954f09d82dfa0971bfcc0539
BLAKE2b-256 eff1e3f051bb63baf50258c6bf770425a180203f773acfa45de6ff40ce3c8764

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_eventiq-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0c95459c1fb08d1f0c908b58f824a710ff128e1686a92e232b0b86570bd73596
MD5 00f72bd18b1c57b8b3d4fc5efc161b53
BLAKE2b-256 6ddfae245f0a74c3ae655517a0857e46b36a6ed44ffb983ae15869b518ead470

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