feat: Support including host name in faraday span names #1385
+27
−3
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.
Faraday span names appear as just "HTTP <METHOD>" which doesn't provide a ton of context when visualizing the spans.
For some specific context about our use case:
We use Grafana span metrics to create alerts when any of our critical 3rd-party APIs we use have a high latency. But since those metrics don't include the
net.peer.name
attribute that were on the original span, we only really have the span name to filter down the metrics to what we're looking for.Including the host name in the span name makes this process significantly easier for us and makes it much easier to identify what API call was performed at a quick glance rather than having to click into the span's attributes each time 😄