Hello,
I am trying to use OpenTelemetry for tracing by creating an instrumentation library for RabbitMQ. I am running into an issue though. What we are trying to do is create an event listener, that listens to events from RabbitMQ, once it sees the publish event from the RabbitMQ dotnet client, it should create the activity for tracing.
But it looks like this event source is only fired when the client has to log.
Is there any event source we can listen to from the RabbitMQ client that will trigger when a message is published?
If there is no event for us to listen to, what would be the best way to trigger an action while a message is being published, Where we would have access to the message body and headers? It seems like we should be able to add event handlers to achieve this, but I am not sure if this is the best way.
Thanks