Package com.google.genkit.core.tracing
Class GenkitSpanData
java.lang.Object
com.google.genkit.core.tracing.GenkitSpanData
GenkitSpanData represents information about a trace span. This format matches
the telemetry server API expectations.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAnnotation represents an annotation.static classBoolValue wraps a boolean to match the expected JSON format.static classInstrumentationScope represents the instrumentation library.static classLink describes the relationship between two Spans.static classSpanContextData contains identifying trace information about a Span.static classStatus represents the span status.static classTimeEvent represents a time-based event.static classTimeEvents holds time-based events. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAttribute(String key, Object value) longgetLinks()longvoidsetAttributes(Map<String, Object> attributes) voidsetDisplayName(String displayName) voidsetEndTime(long endTime) voidsetInstrumentationScope(GenkitSpanData.InstrumentationScope instrumentationScope) voidsetLinks(List<GenkitSpanData.Link> links) voidsetParentSpanId(String parentSpanId) voidsetSameProcessAsParentSpan(GenkitSpanData.BoolValue sameProcessAsParentSpan) voidvoidsetSpanKind(String spanKind) voidsetStartTime(long startTime) voidsetStatus(GenkitSpanData.Status status) voidsetTimeEvents(GenkitSpanData.TimeEvents timeEvents) voidsetTraceId(String traceId)
-
Constructor Details
-
GenkitSpanData
public GenkitSpanData()
-
-
Method Details
-
getSpanId
-
setSpanId
-
getTraceId
-
setTraceId
-
getParentSpanId
-
setParentSpanId
-
getStartTime
public long getStartTime() -
setStartTime
public void setStartTime(long startTime) -
getEndTime
public long getEndTime() -
setEndTime
public void setEndTime(long endTime) -
getAttributes
-
setAttributes
-
addAttribute
-
getDisplayName
-
setDisplayName
-
getLinks
-
setLinks
-
getInstrumentationScope
-
setInstrumentationScope
-
getSpanKind
-
setSpanKind
-
getSameProcessAsParentSpan
-
setSameProcessAsParentSpan
-
getStatus
-
setStatus
-
getTimeEvents
-
setTimeEvents
-