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

If you're not sure about the file name format, learn more about wheel file names.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_eventiq-0.1.4.tar.gz
Algorithm Hash digest
SHA256 2a399fb10a1745652118c33d222bc245acb2ce7116a6e3c41ab918a0e3b3733b
MD5 1b69aea1f8b5eadb88a9ce4ad97cb8a4
BLAKE2b-256 e1a2f4b70c7aafd4f3edf12897f395b8bbb363628ff7c6080d5cf911ae1f8b4f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_eventiq-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 4933968b6e355a2e1fdc717725c7b24026e4ff15d624676b4b78223609aea72a
MD5 905939aa6c3857c466d77a6c63288266
BLAKE2b-256 448532bb1c8f09320c1123a268b46c564b05f87469e1ff68ad9ac36e11015cf0

See more details on using hashes here.

Supported by

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