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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file opentelemetry_instrumentation_eventiq-0.1.6.tar.gz.
File metadata
- Download URL: opentelemetry_instrumentation_eventiq-0.1.6.tar.gz
- Upload date:
- Size: 9.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7725ae04488cd45d4d8c5794ab261789e7a57d427b73cadfff24c8af8e931223
|
|
| MD5 |
3838225af896d9202df1e6f575bdd11f
|
|
| BLAKE2b-256 |
40197cd89414430da35a9b3564d1b3ce81847b1e12ad8f28823c18a6451229ab
|
File details
Details for the file opentelemetry_instrumentation_eventiq-0.1.6-py3-none-any.whl.
File metadata
- Download URL: opentelemetry_instrumentation_eventiq-0.1.6-py3-none-any.whl
- Upload date:
- Size: 11.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
01a73e0e8e2a5ab285e25042bafdee04f43e7c963f3d65f25dc6db21a5515675
|
|
| MD5 |
18e12b26d9f15f6aaf288a95986bb6d9
|
|
| BLAKE2b-256 |
9ede5348a15c987ab96f4ccc89d3812a8aebb0983c617bdd4e6ffe91e9e19dc6
|