Package com.braintrustdata.api.models
Class SpanAttributes
-
- All Implemented Interfaces:
public final class SpanAttributesHuman-identifying attributes of the span, such as name, type, etc.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classSpanAttributes.BuilderA builder for SpanAttributes.
-
Method Summary
Modifier and Type Method Description final Optional<String>name()Name of the span, for display purposes only final Optional<SpanType>type()Type of the span, for display purposes only final JsonField<String>_name()Returns the raw JSON value of name. final JsonField<SpanType>_type()Returns the raw JSON value of type. final Map<String, JsonValue>_additionalProperties()final SpanAttributes.BuildertoBuilder()final SpanAttributesvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static SpanAttributes.Builderbuilder()Returns a mutable builder for constructing an instance of SpanAttributes. -
-
Method Detail
-
_name
final JsonField<String> _name()
Returns the raw JSON value of name.
Unlike name, this method doesn't throw if the JSON field has an unexpected type.
-
_type
final JsonField<SpanType> _type()
Returns the raw JSON value of type.
Unlike type, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final SpanAttributes.Builder toBuilder()
-
validate
final SpanAttributes validate()
-
builder
final static SpanAttributes.Builder builder()
Returns a mutable builder for constructing an instance of SpanAttributes.
-
-
-
-