Opentelemetry instrumentation for eventiq
Project description
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 eventiqOpenTelemetryTracingMiddleware
- Middleware for tracing messages with OpenTelemetryOpenTelemetryMetricsMiddleware
- Middleware for exporting metrics with OpenTelemetryTraceContextCloudEvent
- 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
- Download URL: opentelemetry_instrumentation_eventiq-0.0.1.tar.gz
- Upload date:
- Size: 9.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | df52562e92127823a09e460c2e01eaaafa5e35dcd1d8b11ed8b3368d57cf1d0b |
|
MD5 | ab8233ac954f09d82dfa0971bfcc0539 |
|
BLAKE2b-256 | eff1e3f051bb63baf50258c6bf770425a180203f773acfa45de6ff40ce3c8764 |
File details
Details for the file opentelemetry_instrumentation_eventiq-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: opentelemetry_instrumentation_eventiq-0.0.1-py3-none-any.whl
- Upload date:
- Size: 10.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c95459c1fb08d1f0c908b58f824a710ff128e1686a92e232b0b86570bd73596 |
|
MD5 | 00f72bd18b1c57b8b3d4fc5efc161b53 |
|
BLAKE2b-256 | 6ddfae245f0a74c3ae655517a0857e46b36a6ed44ffb983ae15869b518ead470 |