Package io.micrometer.tracing
Interface SpanCustomizer
- All Known Subinterfaces:
Span
public interface SpanCustomizer
Allows to customize the current span in scope.
- Since:
- 1.0.0
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets an event on a span.Sets a name on a span.Sets a tag on a span.
-
Field Details
-
NOOP
A noop implementation.
-
-
Method Details
-
name
Sets a name on a span.- Parameters:
name
- name to set on a span- Returns:
- this, for chaining
-
tag
Sets a tag on a span.- Parameters:
key
- tag keyvalue
- tag value- Returns:
- this, for chaining
-
event
Sets an event on a span.- Parameters:
value
- event name- Returns:
- this, for chaining
-