Fix: Use topology name for message and exception tags #134
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What problem does this solve?
While using
BroadwayRabbitMQ.Producer
for Broadway, we were not able to override the message acknowledger according to the docs as there is a unique:delivery_tag
required to ack messages to RMQ. When we tried, this was empty and our messages were not being acked.Second, the metrics were not showing up for the RabbitMQ backed pipeline, but they were for a pipeline using a normal GenStage producer and after some digging around, I noticed that the
:name
tag/label on the/metrics
were different:GenStage Producer Metric
RabbitMQ Producer Metric
Changes
After switching the tag_values function to use
:topology_name
, the metrics for both Pipelines started to show up accurately in Grafana.Curious if there was a reason to use the message acknowledger for the name tags? BroadwayRabbitMQ emits different events for acking/ rejecting.
I'd be happy to add those in a separate PR. Wanted to keep this one short.
Issue number: N/A
Example usage
Additional details and screenshots
GenStage Pipeline
RabbitMQ Pipeline
Checklist