CurrentSpanCustomizer
, Span
public interface SpanCustomizer
This type is safer to expose directly to users than Span
, as it has no hooks that
can affect the span lifecycle.
Modifier and Type | Method | Description |
---|---|---|
SpanCustomizer |
annotate(long timestamp,
String value) |
Like
annotate(String) , except with a given timestamp in microseconds. |
SpanCustomizer |
annotate(String value) |
Associates an event that explains latency with the current system time.
|
SpanCustomizer |
name(String name) |
Sets the string name for the logical operation this span represents.
|
SpanCustomizer |
tag(String key,
String value) |
Tags give your span context for search, viewing and analysis.
|
SpanCustomizer name(String name)
SpanCustomizer tag(String key, String value)
TraceKeys.SQL_QUERY
isn't searchable, but it can help in debugging when viewing a trace.key
- Name used to lookup spans, such as "your_app.version". See TraceKeys
for
standard ones.value
- String value, cannot be null
.SpanCustomizer annotate(String value)
value
- A short tag indicating the event, like "finagle.retry"Constants
SpanCustomizer annotate(long timestamp, String value)
annotate(String)
, except with a given timestamp in microseconds.Copyright © 2018 OpenZipkin. All rights reserved.