Class OpenTelemetrySpan
- java.lang.Object
-
- com.spotify.github.tracing.opentelemetry.OpenTelemetrySpan
-
- All Implemented Interfaces:
Span
,AutoCloseable
public class OpenTelemetrySpan extends Object implements Span
-
-
Field Summary
Fields Modifier and Type Field Description static int
INTERNAL_SERVER_ERROR
static int
NOT_FOUND
-
Constructor Summary
Constructors Constructor Description OpenTelemetrySpan(io.opentelemetry.api.trace.Span span)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Span
addEvent(String description)
Span
addTag(String key, boolean value)
Span
addTag(String key, double value)
Span
addTag(String key, long value)
Span
addTag(String key, String value)
void
close()
Close span.Span
failure(Throwable t)
Span
success()
-
-
-
Field Detail
-
NOT_FOUND
public static final int NOT_FOUND
- See Also:
- Constant Field Values
-
INTERNAL_SERVER_ERROR
public static final int INTERNAL_SERVER_ERROR
- See Also:
- Constant Field Values
-
-
Method Detail
-
close
public void close()
Description copied from interface:Span
Close span. Must be called for any opened span.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceSpan
-
-