Add ability to customize span names for TraceLayer #470
-
Feature RequestAt the moment addition of
As the result all spans are named MotivationIt would be nice see method+endpoint uri instead. Something like ProposalI'm very new to Rust. If I'm not mistaken this is the place where Not sure how to achieve this. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
This is already possible, using |
Beta Was this translation helpful? Give feedback.
-
Thanks a lot. Every other attribute works great but struggling setting up the name |
Beta Was this translation helpful? Give feedback.
I mean that the
GET /api/devices
string from your previous screenshot is not the tracing span's.metadata()?.name()
. And indeed I think I found how it works: If there is a field namedotel.name
on the span, that's used in theName
column. Try writing something like this formake_span_with
: