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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

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