You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: instrumentation/opentelemetry-instrumentation-aiokafka/src/opentelemetry/instrumentation/aiokafka/__init__.py
+21-10Lines changed: 21 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -39,15 +39,26 @@ async def consume():
39
39
asyncio.run(produce())
40
40
asyncio.run(consume())
41
41
42
-
The _instrument() method accepts the following keyword args:
43
-
tracer_provider (TracerProvider) - an optional tracer provider
44
-
async_produce_hook (Callable) - a function with extra user-defined logic to be performed before sending the message
45
-
this function signature is:
46
-
def async_produce_hook(span: Span, args, kwargs)
47
-
async_consume_hook (Callable) - a function with extra user-defined logic to be performed after consuming a message
Copy file name to clipboardExpand all lines: instrumentation/opentelemetry-instrumentation-confluent-kafka/src/opentelemetry/instrumentation/confluent_kafka/__init__.py
0 commit comments