public class ThresholdRequestSpan extends Object implements RequestSpan
| Modifier and Type | Method and Description |
|---|---|
void |
addEvent(String name,
Instant timestamp)
Sets an event on the span, which is translated to the corresponding implementation specific event.
|
void |
end()
Completes this span.
|
void |
requestContext(RequestContext requestContext)
Allows to set a request context to the request span.
|
void |
setAttribute(String key,
boolean value)
Sets an attribute on the span, which is translated to the corresponding implementation specific tag.
|
void |
setAttribute(String key,
long value)
Sets an attribute on the span, which is translated to the corresponding implementation specific tag.
|
void |
setAttribute(String key,
String value)
Sets an attribute on the span, which is translated to the corresponding implementation specific tag.
|
public void setAttribute(String key, String value)
RequestSpanNote that, depending on the implementation, attributes might be ignored.
setAttribute in interface RequestSpankey - the key of the attribute.value - the value of the attribute.public void setAttribute(String key, boolean value)
RequestSpanNote that, depending on the implementation, attributes might be ignored.
setAttribute in interface RequestSpankey - the key of the attribute.value - the value of the attribute.public void setAttribute(String key, long value)
RequestSpanNote that, depending on the implementation, attributes might be ignored.
setAttribute in interface RequestSpankey - the key of the attribute.value - the value of the attribute.public void addEvent(String name, Instant timestamp)
RequestSpanNote that, depending on the implementation, events might be ignored.
addEvent in interface RequestSpanname - the name of the eventtimestamp - the timestamp when it happened.public void requestContext(RequestContext requestContext)
RequestSpanrequestContext in interface RequestSpanrequestContext - the request context, if present.public void end()
RequestSpanend in interface RequestSpanCopyright © 2021 Couchbase, Inc.. All rights reserved.