-
public final class SpanEventStructure holding information about a Span
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classSpanEvent.Companionpublic final classSpanEvent.MetricsThe metrics data of this Span event
public final classSpanEvent.MetaThe metadata of this Span event
public final classSpanEvent.Ddpublic final classSpanEvent.Spanpublic final classSpanEvent.Tracerpublic final classSpanEvent.UsrUser properties
public final classSpanEvent.NetworkThe network information in the moment the Span was created
public final classSpanEvent.Clientpublic final classSpanEvent.SimCarrier
-
Field Summary
Fields Modifier and Type Field Description private final Stringtypeprivate final StringtraceIdprivate final StringspanIdprivate final StringparentIdprivate Stringresourceprivate Stringnameprivate final Stringserviceprivate final Longdurationprivate final Longstartprivate final Longerrorprivate final SpanEvent.Metricsmetricsprivate final SpanEvent.Metameta
-
Method Summary
Modifier and Type Method Description final StringgetType()final StringgetTraceId()final StringgetSpanId()final StringgetParentId()final StringgetResource()final UnitsetResource(String resource)final StringgetName()final UnitsetName(String name)final StringgetService()final LonggetDuration()final LonggetStart()final LonggetError()final SpanEvent.MetricsgetMetrics()final SpanEvent.MetagetMeta()final JsonElementtoJson()-
-
Constructor Detail
-
SpanEvent
SpanEvent(String traceId, String spanId, String parentId, String resource, String name, String service, Long duration, Long start, Long error, SpanEvent.Metrics metrics, SpanEvent.Meta meta)
- Parameters:
traceId- The id of the trace this Span belongs tospanId- The unique id of this SpanparentId- The id this Span's parent or 0 if this is the root Spanresource- The resource namename- The name of this Spanservice- The service nameduration- The duration of this Span in nanosecondsstart- The Span start time in nanosecondserror- Span error flag.metrics- The metrics data of this Span eventmeta- The metadata of this Span event
-
-
Method Detail
-
getTraceId
final String getTraceId()
-
getParentId
final String getParentId()
-
getResource
final String getResource()
-
setResource
final Unit setResource(String resource)
- Parameters:
resource- The resource name
-
getService
final String getService()
-
getDuration
final Long getDuration()
-
getMetrics
final SpanEvent.Metrics getMetrics()
-
getMeta
final SpanEvent.Meta getMeta()
-
toJson
final JsonElement toJson()
-
-
-
-