Class OtelSpan
java.lang.Object
com.langfuse.client.resources.opentelemetry.types.OtelSpan
-
Method Details
-
getTraceId
- Returns:
- Trace ID (16 bytes, hex-encoded string in JSON or Buffer in binary)
-
getSpanId
- Returns:
- Span ID (8 bytes, hex-encoded string in JSON or Buffer in binary)
-
getParentSpanId
- Returns:
- Parent span ID if this is a child span
-
getName
- Returns:
- Span name describing the operation
-
getKind
- Returns:
- Span kind (1=INTERNAL, 2=SERVER, 3=CLIENT, 4=PRODUCER, 5=CONSUMER)
-
getStartTimeUnixNano
- Returns:
- Start time in nanoseconds since Unix epoch
-
getEndTimeUnixNano
- Returns:
- End time in nanoseconds since Unix epoch
-
getAttributes
- Returns:
- Span attributes including Langfuse-specific attributes (langfuse.observation.*)
-
getStatus
- Returns:
- Span status object
-
equals
-
getAdditionalProperties
-
hashCode
public int hashCode() -
toString
-
builder
-