mirror of
https://github.com/open-telemetry/opentelemetry-python-contrib.git
synced 2025-07-28 04:34:01 +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
|
||||
import remoulade
|
||||
from opentelemetry.instrumentation.remoulade import RemouladeInstrumentor
|
||||
|
||||
RemouladeInstrumentor().instrument()
|
||||
|
||||
@ -38,7 +39,7 @@ Run instrumented actor
|
||||
def multiply(x, y):
|
||||
return x * y
|
||||
|
||||
broker.declare_actor(count_words)
|
||||
broker.declare_actor(multiply)
|
||||
|
||||
multiply.send(43, 51)
|
||||
|
||||
|
Reference in New Issue
Block a user