Class OtelSpan.Builder
java.lang.Object
com.langfuse.client.resources.opentelemetry.types.OtelSpan.Builder
- Enclosing class:
OtelSpan
-
Method Summary
Modifier and TypeMethodDescriptionadditionalProperties(Map<String, Object> additionalProperties) additionalProperty(String key, Object value) attributes(List<OtelAttribute> attributes) attributes(Optional<List<OtelAttribute>> attributes) Span attributes including Langfuse-specific attributes (langfuse.observation.*)build()endTimeUnixNano(Object endTimeUnixNano) endTimeUnixNano(Optional<Object> endTimeUnixNano) End time in nanoseconds since Unix epochSpan kind (1=INTERNAL, 2=SERVER, 3=CLIENT, 4=PRODUCER, 5=CONSUMER)Span name describing the operationparentSpanId(Object parentSpanId) parentSpanId(Optional<Object> parentSpanId) Parent span ID if this is a child spanSpan ID (8 bytes, hex-encoded string in JSON or Buffer in binary)startTimeUnixNano(Object startTimeUnixNano) startTimeUnixNano(Optional<Object> startTimeUnixNano) Start time in nanoseconds since Unix epochSpan status objectTrace ID (16 bytes, hex-encoded string in JSON or Buffer in binary)
-
Method Details
-
from
-
traceId
Trace ID (16 bytes, hex-encoded string in JSON or Buffer in binary)
-
traceId
-
spanId
Span ID (8 bytes, hex-encoded string in JSON or Buffer in binary)
-
spanId
-
parentSpanId
Parent span ID if this is a child span
-
parentSpanId
-
name
Span name describing the operation
-
name
-
kind
Span kind (1=INTERNAL, 2=SERVER, 3=CLIENT, 4=PRODUCER, 5=CONSUMER)
-
kind
-
startTimeUnixNano
Start time in nanoseconds since Unix epoch
-
startTimeUnixNano
-
endTimeUnixNano
End time in nanoseconds since Unix epoch
-
endTimeUnixNano
-
attributes
Span attributes including Langfuse-specific attributes (langfuse.observation.*)
-
attributes
-
status
Span status object
-
status
-
build
-
additionalProperty
-
additionalProperties
-