public class OpenTelemetryRequestSpan extends Object implements RequestSpan
| Modifier and Type | Method and Description |
|---|---|
void |
addEvent(String name,
Instant timestamp) |
void |
end() |
void |
requestContext(RequestContext requestContext) |
void |
setAttribute(String key,
boolean value) |
void |
setAttribute(String key,
long value) |
void |
setAttribute(String key,
String value) |
io.opentelemetry.api.trace.Span |
span()
Returns the wrapped OpenTelemetry span.
|
static OpenTelemetryRequestSpan |
wrap(io.opentelemetry.api.trace.Span span)
Wraps an OpenTelemetry span so that it can be passed in to the SDK-operation options as a parent.
|
public static OpenTelemetryRequestSpan wrap(io.opentelemetry.api.trace.Span span)
span - the span that should act as the parent.public io.opentelemetry.api.trace.Span span()
public void setAttribute(String key, String value)
setAttribute in interface RequestSpanpublic void setAttribute(String key, boolean value)
setAttribute in interface RequestSpanpublic void setAttribute(String key, long value)
setAttribute in interface RequestSpanpublic void addEvent(String name, Instant timestamp)
addEvent in interface RequestSpanpublic void end()
end in interface RequestSpanpublic void requestContext(RequestContext requestContext)
requestContext in interface RequestSpanCopyright © 2021 Couchbase, Inc.. All rights reserved.