mirror of
https://github.com/open-telemetry/opentelemetry-python-contrib.git
synced 2025-07-30 05:32:30 +08:00
Improve remoulade instrumentation example (#3391)
This commit is contained in:

committed by
GitHub

parent
ff18e7c18b
commit
fdcd80d89f
@ -28,6 +28,7 @@ Run instrumented actor
|
|||||||
|
|
||||||
from remoulade.brokers.rabbitmq import RabbitmqBroker
|
from remoulade.brokers.rabbitmq import RabbitmqBroker
|
||||||
import remoulade
|
import remoulade
|
||||||
|
from opentelemetry.instrumentation.remoulade import RemouladeInstrumentor
|
||||||
|
|
||||||
RemouladeInstrumentor().instrument()
|
RemouladeInstrumentor().instrument()
|
||||||
|
|
||||||
@ -38,7 +39,7 @@ Run instrumented actor
|
|||||||
def multiply(x, y):
|
def multiply(x, y):
|
||||||
return x * y
|
return x * y
|
||||||
|
|
||||||
broker.declare_actor(count_words)
|
broker.declare_actor(multiply)
|
||||||
|
|
||||||
multiply.send(43, 51)
|
multiply.send(43, 51)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user