Improve remoulade instrumentation example (#3391)

This commit is contained in:
Andre Murbach Maidl
2025-04-02 06:58:35 -03:00
committed by GitHub
parent ff18e7c18b
commit fdcd80d89f

View File

@ -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)