Interface JsonLogConverter.LogSpan
- Enclosing interface:
JsonLogConverter
public static interface JsonLogConverter.LogSpan
Information describing a specific span.
-
Method Summary
Modifier and TypeMethodDescriptionReturns attributes assigned to the span.long
Returns the end time in nanoseconds of the span.int
kind()
Returns the span kind.name()
Returns the span name.Returns the span's parent span ID or an empty string if there is no parent span.spanId()
Returns the span's span ID.long
Returns the start time in nanoseconds of the span.traceId()
Returns the span's trace ID.
-
Method Details
-
traceId
String traceId()Returns the span's trace ID.- Returns:
- trace ID
-
spanId
String spanId()Returns the span's span ID.- Returns:
- span ID
-
parentSpanId
String parentSpanId()Returns the span's parent span ID or an empty string if there is no parent span.- Returns:
- parent span ID
-
name
String name()Returns the span name.- Returns:
- span name
-
kind
int kind()Returns the span kind.- Returns:
- span kind
-
startTimeUnixNanos
long startTimeUnixNanos()Returns the start time in nanoseconds of the span.- Returns:
- span start time
-
endTimeUnixNanos
long endTimeUnixNanos()Returns the end time in nanoseconds of the span.- Returns:
- span end time
-
attributes
Returns attributes assigned to the span.- Returns:
- span-level attributes
-