Adding metadata to an observation #5826
Labels
enhancement
A general enhancement
help wanted
An issue that a contributor can help us with
module: micrometer-observation
Milestone
Please describe the feature request.
I am trying to capture some metadata for my spans, specifically the param keys and values.
I know I can use the @observed annotation but it looks like it only captures lowCardinalityValues and I'm not sure if you can add in param values to them.
The only way I figured out how to capture the param values is to manually wrap the core logic in my service method in an Observation like this:
I am looking for a better way to do this. Previously with Sleuth I was using @SpanTag and that used to work, but not any more.
Rationale
Wrapping all of the logic with an Observation works, but it looks messy and adds quite a bit of code.
Additional context
Add any other context about the feature request here, e.g. related issues, prior art.
The text was updated successfully, but these errors were encountered: