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,
String value) |
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 void setAttribute(String key, String 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.