Class InsertProjectLogsEvent.Builder
-
- All Implemented Interfaces:
public final class InsertProjectLogsEvent.BuilderA builder for InsertProjectLogsEvent.
-
-
Method Summary
Modifier and Type Method Description final InsertProjectLogsEvent.Builderid(String id)A unique identifier for the project logs event. final InsertProjectLogsEvent.Builderid(Optional<String> id)Alias for calling Builder.id with id.orElse(null).final InsertProjectLogsEvent.Builderid(JsonField<String> id)Sets Builder.id to an arbitrary JSON value. final InsertProjectLogsEvent.Builder_isMerge(Boolean _isMerge)The _is_mergefield controls how the row is merged with any existing row with the same id in the DB.final InsertProjectLogsEvent.Builder_isMerge(Boolean _isMerge)Alias for Builder._isMerge. final InsertProjectLogsEvent.Builder_isMerge(Optional<Boolean> _isMerge)Alias for calling Builder._isMerge with _isMerge.orElse(null).final InsertProjectLogsEvent.Builder_isMerge(JsonField<Boolean> _isMerge)Sets Builder._isMerge to an arbitrary JSON value. final InsertProjectLogsEvent.Builder_mergePaths(List<List<String>> _mergePaths)The _merge_pathsfield allows controlling the depth of the merge, when_is_merge=true.final InsertProjectLogsEvent.Builder_mergePaths(Optional<List<List<String>>> _mergePaths)Alias for calling Builder._mergePaths with _mergePaths.orElse(null).final InsertProjectLogsEvent.Builder_mergePaths(JsonField<List<List<String>>> _mergePaths)Sets Builder._mergePaths to an arbitrary JSON value. final InsertProjectLogsEvent.BuilderaddMergePath(List<String> mergePath)Adds a single List<String> to _mergePaths. final InsertProjectLogsEvent.Builder_objectDelete(Boolean _objectDelete)Pass _object_delete=trueto mark the project logs event deleted.final InsertProjectLogsEvent.Builder_objectDelete(Boolean _objectDelete)Alias for Builder._objectDelete. final InsertProjectLogsEvent.Builder_objectDelete(Optional<Boolean> _objectDelete)Alias for calling Builder._objectDelete with _objectDelete.orElse(null).final InsertProjectLogsEvent.Builder_objectDelete(JsonField<Boolean> _objectDelete)Sets Builder._objectDelete to an arbitrary JSON value. final InsertProjectLogsEvent.Builder_parentId(String _parentId)DEPRECATED: The _parent_idfield is deprecated and should not be used.final InsertProjectLogsEvent.Builder_parentId(Optional<String> _parentId)Alias for calling Builder._parentId with _parentId.orElse(null).final InsertProjectLogsEvent.Builder_parentId(JsonField<String> _parentId)Sets Builder._parentId to an arbitrary JSON value. final InsertProjectLogsEvent.Buildercontext(InsertProjectLogsEvent.Context context)Context is additional information about the code that produced the project logs event. final InsertProjectLogsEvent.Buildercontext(Optional<InsertProjectLogsEvent.Context> context)Alias for calling Builder.context with context.orElse(null).final InsertProjectLogsEvent.Buildercontext(JsonField<InsertProjectLogsEvent.Context> context)Sets Builder.context to an arbitrary JSON value. final InsertProjectLogsEvent.Buildercreated(OffsetDateTime created)The timestamp the project logs event was created final InsertProjectLogsEvent.Buildercreated(Optional<OffsetDateTime> created)Alias for calling Builder.created with created.orElse(null).final InsertProjectLogsEvent.Buildercreated(JsonField<OffsetDateTime> created)Sets Builder.created to an arbitrary JSON value. final InsertProjectLogsEvent.Buildererror(JsonValue error)The error that occurred, if any. final InsertProjectLogsEvent.Builderexpected(JsonValue expected)The ground truth value (an arbitrary, JSON serializable object) that you'd compare to outputto determine if youroutputvalue is correct or not.final InsertProjectLogsEvent.Builderinput(JsonValue input)The arguments that uniquely define a user input (an arbitrary, JSON serializable object). final InsertProjectLogsEvent.Buildermetadata(InsertProjectLogsEvent.Metadata metadata)A dictionary with additional data about the test example, model outputs, or just about anything else that's relevant, that you can use to help find and analyze examples later. final InsertProjectLogsEvent.Buildermetadata(Optional<InsertProjectLogsEvent.Metadata> metadata)Alias for calling Builder.metadata with metadata.orElse(null).final InsertProjectLogsEvent.Buildermetadata(JsonField<InsertProjectLogsEvent.Metadata> metadata)Sets Builder.metadata to an arbitrary JSON value. final InsertProjectLogsEvent.Buildermetrics(InsertProjectLogsEvent.Metrics metrics)Metrics are numerical measurements tracking the execution of the code that produced the project logs event. final InsertProjectLogsEvent.Buildermetrics(Optional<InsertProjectLogsEvent.Metrics> metrics)Alias for calling Builder.metrics with metrics.orElse(null).final InsertProjectLogsEvent.Buildermetrics(JsonField<InsertProjectLogsEvent.Metrics> metrics)Sets Builder.metrics to an arbitrary JSON value. final InsertProjectLogsEvent.Builderorigin(ObjectReference origin)Indicates the event was copied from another object. final InsertProjectLogsEvent.Builderorigin(Optional<ObjectReference> origin)Alias for calling Builder.origin with origin.orElse(null).final InsertProjectLogsEvent.Builderorigin(JsonField<ObjectReference> origin)Sets Builder.origin to an arbitrary JSON value. final InsertProjectLogsEvent.Builderoutput(JsonValue output)The output of your application, including post-processing (an arbitrary, JSON serializable object), that allows you to determine whether the result is correct or not. final InsertProjectLogsEvent.BuilderrootSpanId(String rootSpanId)Use span_id,root_span_id, andspan_parentsinstead of_parent_id, which is now deprecated.final InsertProjectLogsEvent.BuilderrootSpanId(Optional<String> rootSpanId)Alias for calling Builder.rootSpanId with rootSpanId.orElse(null).final InsertProjectLogsEvent.BuilderrootSpanId(JsonField<String> rootSpanId)Sets Builder.rootSpanId to an arbitrary JSON value. final InsertProjectLogsEvent.Builderscores(InsertProjectLogsEvent.Scores scores)A dictionary of numeric values (between 0 and 1) to log. final InsertProjectLogsEvent.Builderscores(Optional<InsertProjectLogsEvent.Scores> scores)Alias for calling Builder.scores with scores.orElse(null).final InsertProjectLogsEvent.Builderscores(JsonField<InsertProjectLogsEvent.Scores> scores)Sets Builder.scores to an arbitrary JSON value. final InsertProjectLogsEvent.BuilderspanAttributes(SpanAttributes spanAttributes)Human-identifying attributes of the span, such as name, type, etc. final InsertProjectLogsEvent.BuilderspanAttributes(Optional<SpanAttributes> spanAttributes)Alias for calling Builder.spanAttributes with spanAttributes.orElse(null).final InsertProjectLogsEvent.BuilderspanAttributes(JsonField<SpanAttributes> spanAttributes)Sets Builder.spanAttributes to an arbitrary JSON value. final InsertProjectLogsEvent.BuilderspanId(String spanId)Use span_id,root_span_id, andspan_parentsinstead of_parent_id, which is now deprecated.final InsertProjectLogsEvent.BuilderspanId(Optional<String> spanId)Alias for calling Builder.spanId with spanId.orElse(null).final InsertProjectLogsEvent.BuilderspanId(JsonField<String> spanId)Sets Builder.spanId to an arbitrary JSON value. final InsertProjectLogsEvent.BuilderspanParents(List<String> spanParents)Use span_id,root_span_id, andspan_parentsinstead of_parent_id, which is now deprecated.final InsertProjectLogsEvent.BuilderspanParents(Optional<List<String>> spanParents)Alias for calling Builder.spanParents with spanParents.orElse(null).final InsertProjectLogsEvent.BuilderspanParents(JsonField<List<String>> spanParents)Sets Builder.spanParents to an arbitrary JSON value. final InsertProjectLogsEvent.BuilderaddSpanParent(String spanParent)Adds a single String to spanParents. final InsertProjectLogsEvent.Buildertags(List<String> tags)A list of tags to log final InsertProjectLogsEvent.Buildertags(Optional<List<String>> tags)Alias for calling Builder.tags with tags.orElse(null).final InsertProjectLogsEvent.Buildertags(JsonField<List<String>> tags)Sets Builder.tags to an arbitrary JSON value. final InsertProjectLogsEvent.BuilderaddTag(String tag)Adds a single String to tags. final InsertProjectLogsEvent.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final InsertProjectLogsEvent.BuilderputAdditionalProperty(String key, JsonValue value)final InsertProjectLogsEvent.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final InsertProjectLogsEvent.BuilderremoveAdditionalProperty(String key)final InsertProjectLogsEvent.BuilderremoveAllAdditionalProperties(Set<String> keys)final InsertProjectLogsEventbuild()Returns an immutable instance of InsertProjectLogsEvent. -
-
Method Detail
-
id
final InsertProjectLogsEvent.Builder id(String id)
A unique identifier for the project logs event. If you don't provide one, BrainTrust will generate one for you
-
id
final InsertProjectLogsEvent.Builder id(Optional<String> id)
Alias for calling Builder.id with
id.orElse(null).
-
id
final InsertProjectLogsEvent.Builder id(JsonField<String> id)
Sets Builder.id to an arbitrary JSON value.
You should usually call Builder.id with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
_isMerge
final InsertProjectLogsEvent.Builder _isMerge(Boolean _isMerge)
The
_is_mergefield controls how the row is merged with any existing row with the same id in the DB. By default (or when set tofalse), the existing row is completely replaced by the new row. When set totrue, the new row is deep-merged into the existing row, if one is found. If no existing row is found, the new row is inserted as is.For example, say there is an existing row in the DB
{"id": "foo", "input": {"a": 5, "b": 10}}. If we merge a new row as{"_is_merge": true, "id": "foo", "input": {"b": 11, "c": 20}}, the new row will be{"id": "foo", "input": {"a": 5, "b": 11, "c": 20}}. If we replace the new row as{"id": "foo", "input": {"b": 11, "c": 20}}, the new row will be{"id": "foo", "input": {"b": 11, "c": 20}}
-
_isMerge
final InsertProjectLogsEvent.Builder _isMerge(Boolean _isMerge)
Alias for Builder._isMerge.
This unboxed primitive overload exists for backwards compatibility.
-
_isMerge
final InsertProjectLogsEvent.Builder _isMerge(Optional<Boolean> _isMerge)
Alias for calling Builder._isMerge with
_isMerge.orElse(null).
-
_isMerge
final InsertProjectLogsEvent.Builder _isMerge(JsonField<Boolean> _isMerge)
Sets Builder._isMerge to an arbitrary JSON value.
You should usually call Builder._isMerge with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
_mergePaths
final InsertProjectLogsEvent.Builder _mergePaths(List<List<String>> _mergePaths)
The
_merge_pathsfield allows controlling the depth of the merge, when_is_merge=true._merge_pathsis a list of paths, where each path is a list of field names. The deep merge will not descend below any of the specified merge paths.For example, say there is an existing row in the DB
{"id": "foo", "input": {"a": {"b": 10}, "c": {"d": 20}}, "output": {"a": 20}}. If we merge a new row as{"_is_merge": true, "_merge_paths": [["input", "a"], ["output"]], "input": {"a": {"q": 30}, "c": {"e": 30}, "bar": "baz"}, "output": {"d": 40}}, the new row will be{"id": "foo": "input": {"a": {"q": 30}, "c": {"d": 20, "e": 30}, "bar": "baz"}, "output": {"d": 40}}. In this case, due to the merge paths, we have replacedinput.aandoutput, but have still deep-mergedinputandinput.c.
-
_mergePaths
final InsertProjectLogsEvent.Builder _mergePaths(Optional<List<List<String>>> _mergePaths)
Alias for calling Builder._mergePaths with
_mergePaths.orElse(null).
-
_mergePaths
final InsertProjectLogsEvent.Builder _mergePaths(JsonField<List<List<String>>> _mergePaths)
Sets Builder._mergePaths to an arbitrary JSON value.
You should usually call Builder._mergePaths with a well-typed
List<List<String>>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addMergePath
final InsertProjectLogsEvent.Builder addMergePath(List<String> mergePath)
Adds a single List<String> to _mergePaths.
-
_objectDelete
final InsertProjectLogsEvent.Builder _objectDelete(Boolean _objectDelete)
Pass
_object_delete=trueto mark the project logs event deleted. Deleted events will not show up in subsequent fetches for this project logs
-
_objectDelete
final InsertProjectLogsEvent.Builder _objectDelete(Boolean _objectDelete)
Alias for Builder._objectDelete.
This unboxed primitive overload exists for backwards compatibility.
-
_objectDelete
final InsertProjectLogsEvent.Builder _objectDelete(Optional<Boolean> _objectDelete)
Alias for calling Builder._objectDelete with
_objectDelete.orElse(null).
-
_objectDelete
final InsertProjectLogsEvent.Builder _objectDelete(JsonField<Boolean> _objectDelete)
Sets Builder._objectDelete to an arbitrary JSON value.
You should usually call Builder._objectDelete with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
_parentId
final InsertProjectLogsEvent.Builder _parentId(String _parentId)
DEPRECATED: The
_parent_idfield is deprecated and should not be used. Support for_parent_idwill be dropped in a future version of Braintrust. Logspan_id,root_span_id, andspan_parentsexplicitly instead.Use the
_parent_idfield to create this row as a subspan of an existing row. Tracking hierarchical relationships are important for tracing (see the guide for full details).For example, say we have logged a row
{"id": "abc", "input": "foo", "output": "bar", "expected": "boo", "scores": {"correctness": 0.33}}. We can create a sub-span of the parent row by logging{"_parent_id": "abc", "id": "llm_call", "input": {"prompt": "What comes after foo?"}, "output": "bar", "metrics": {"tokens": 1}}. In the webapp, only the root span row"abc"will show up in the summary view. You can view the full trace hierarchy (in this case, the"llm_call"row) by clicking on the "abc" row.If the row is being merged into an existing row, this field will be ignored.
-
_parentId
final InsertProjectLogsEvent.Builder _parentId(Optional<String> _parentId)
Alias for calling Builder._parentId with
_parentId.orElse(null).
-
_parentId
final InsertProjectLogsEvent.Builder _parentId(JsonField<String> _parentId)
Sets Builder._parentId to an arbitrary JSON value.
You should usually call Builder._parentId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
context
final InsertProjectLogsEvent.Builder context(InsertProjectLogsEvent.Context context)
Context is additional information about the code that produced the project logs event. It is essentially the textual counterpart to
metrics. Use thecaller_*attributes to track the location in code which produced the project logs event
-
context
final InsertProjectLogsEvent.Builder context(Optional<InsertProjectLogsEvent.Context> context)
Alias for calling Builder.context with
context.orElse(null).
-
context
final InsertProjectLogsEvent.Builder context(JsonField<InsertProjectLogsEvent.Context> context)
Sets Builder.context to an arbitrary JSON value.
You should usually call Builder.context with a well-typed Context value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
created
final InsertProjectLogsEvent.Builder created(OffsetDateTime created)
The timestamp the project logs event was created
-
created
final InsertProjectLogsEvent.Builder created(Optional<OffsetDateTime> created)
Alias for calling Builder.created with
created.orElse(null).
-
created
final InsertProjectLogsEvent.Builder created(JsonField<OffsetDateTime> created)
Sets Builder.created to an arbitrary JSON value.
You should usually call Builder.created with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
error
final InsertProjectLogsEvent.Builder error(JsonValue error)
The error that occurred, if any.
-
expected
final InsertProjectLogsEvent.Builder expected(JsonValue expected)
The ground truth value (an arbitrary, JSON serializable object) that you'd compare to
outputto determine if youroutputvalue is correct or not. Braintrust currently does not compareoutputtoexpectedfor you, since there are so many different ways to do that correctly. Instead, these values are just used to help you navigate while digging into analyses. However, we may later use these values to re-score outputs or fine-tune your models.
-
input
final InsertProjectLogsEvent.Builder input(JsonValue input)
The arguments that uniquely define a user input (an arbitrary, JSON serializable object).
-
metadata
final InsertProjectLogsEvent.Builder metadata(InsertProjectLogsEvent.Metadata metadata)
A dictionary with additional data about the test example, model outputs, or just about anything else that's relevant, that you can use to help find and analyze examples later. For example, you could log the
prompt, example'sid, or anything else that would be useful to slice/dice later. The values inmetadatacan be any JSON-serializable type, but its keys must be strings
-
metadata
final InsertProjectLogsEvent.Builder metadata(Optional<InsertProjectLogsEvent.Metadata> metadata)
Alias for calling Builder.metadata with
metadata.orElse(null).
-
metadata
final InsertProjectLogsEvent.Builder metadata(JsonField<InsertProjectLogsEvent.Metadata> metadata)
Sets Builder.metadata to an arbitrary JSON value.
You should usually call Builder.metadata with a well-typed Metadata value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
metrics
final InsertProjectLogsEvent.Builder metrics(InsertProjectLogsEvent.Metrics metrics)
Metrics are numerical measurements tracking the execution of the code that produced the project logs event. Use "start" and "end" to track the time span over which the project logs event was produced
-
metrics
final InsertProjectLogsEvent.Builder metrics(Optional<InsertProjectLogsEvent.Metrics> metrics)
Alias for calling Builder.metrics with
metrics.orElse(null).
-
metrics
final InsertProjectLogsEvent.Builder metrics(JsonField<InsertProjectLogsEvent.Metrics> metrics)
Sets Builder.metrics to an arbitrary JSON value.
You should usually call Builder.metrics with a well-typed Metrics value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
origin
final InsertProjectLogsEvent.Builder origin(ObjectReference origin)
Indicates the event was copied from another object.
-
origin
final InsertProjectLogsEvent.Builder origin(Optional<ObjectReference> origin)
Alias for calling Builder.origin with
origin.orElse(null).
-
origin
final InsertProjectLogsEvent.Builder origin(JsonField<ObjectReference> origin)
Sets Builder.origin to an arbitrary JSON value.
You should usually call Builder.origin with a well-typed ObjectReference value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
output
final InsertProjectLogsEvent.Builder output(JsonValue output)
The output of your application, including post-processing (an arbitrary, JSON serializable object), that allows you to determine whether the result is correct or not. For example, in an app that generates SQL queries, the
outputshould be the result of the SQL query generated by the model, not the query itself, because there may be multiple valid queries that answer a single question.
-
rootSpanId
final InsertProjectLogsEvent.Builder rootSpanId(String rootSpanId)
Use
span_id,root_span_id, andspan_parentsinstead of_parent_id, which is now deprecated. The span_id is a unique identifier describing the row's place in the a trace, and the root_span_id is a unique identifier for the whole trace. See the guide for full details.For example, say we have logged a row
{"id": "abc", "span_id": "span0", "root_span_id": "root_span0", "input": "foo", "output": "bar", "expected": "boo", "scores": {"correctness": 0.33}}. We can create a sub-span of the parent row by logging{"id": "llm_call", "span_id": "span1", "root_span_id": "root_span0", "span_parents": ["span0"], "input": {"prompt": "What comes after foo?"}, "output": "bar", "metrics": {"tokens": 1}}. In the webapp, only the root span row"abc"will show up in the summary view. You can view the full trace hierarchy (in this case, the"llm_call"row) by clicking on the "abc" row.If the row is being merged into an existing row, this field will be ignored.
-
rootSpanId
final InsertProjectLogsEvent.Builder rootSpanId(Optional<String> rootSpanId)
Alias for calling Builder.rootSpanId with
rootSpanId.orElse(null).
-
rootSpanId
final InsertProjectLogsEvent.Builder rootSpanId(JsonField<String> rootSpanId)
Sets Builder.rootSpanId to an arbitrary JSON value.
You should usually call Builder.rootSpanId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
scores
final InsertProjectLogsEvent.Builder scores(InsertProjectLogsEvent.Scores scores)
A dictionary of numeric values (between 0 and 1) to log. The scores should give you a variety of signals that help you determine how accurate the outputs are compared to what you expect and diagnose failures. For example, a summarization app might have one score that tells you how accurate the summary is, and another that measures the word similarity between the generated and grouth truth summary. The word similarity score could help you determine whether the summarization was covering similar concepts or not. You can use these scores to help you sort, filter, and compare logs.
-
scores
final InsertProjectLogsEvent.Builder scores(Optional<InsertProjectLogsEvent.Scores> scores)
Alias for calling Builder.scores with
scores.orElse(null).
-
scores
final InsertProjectLogsEvent.Builder scores(JsonField<InsertProjectLogsEvent.Scores> scores)
Sets Builder.scores to an arbitrary JSON value.
You should usually call Builder.scores with a well-typed Scores value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
spanAttributes
final InsertProjectLogsEvent.Builder spanAttributes(SpanAttributes spanAttributes)
Human-identifying attributes of the span, such as name, type, etc.
-
spanAttributes
final InsertProjectLogsEvent.Builder spanAttributes(Optional<SpanAttributes> spanAttributes)
Alias for calling Builder.spanAttributes with
spanAttributes.orElse(null).
-
spanAttributes
final InsertProjectLogsEvent.Builder spanAttributes(JsonField<SpanAttributes> spanAttributes)
Sets Builder.spanAttributes to an arbitrary JSON value.
You should usually call Builder.spanAttributes with a well-typed SpanAttributes value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
spanId
final InsertProjectLogsEvent.Builder spanId(String spanId)
Use
span_id,root_span_id, andspan_parentsinstead of_parent_id, which is now deprecated. The span_id is a unique identifier describing the row's place in the a trace, and the root_span_id is a unique identifier for the whole trace. See the guide for full details.For example, say we have logged a row
{"id": "abc", "span_id": "span0", "root_span_id": "root_span0", "input": "foo", "output": "bar", "expected": "boo", "scores": {"correctness": 0.33}}. We can create a sub-span of the parent row by logging{"id": "llm_call", "span_id": "span1", "root_span_id": "root_span0", "span_parents": ["span0"], "input": {"prompt": "What comes after foo?"}, "output": "bar", "metrics": {"tokens": 1}}. In the webapp, only the root span row"abc"will show up in the summary view. You can view the full trace hierarchy (in this case, the"llm_call"row) by clicking on the "abc" row.If the row is being merged into an existing row, this field will be ignored.
-
spanId
final InsertProjectLogsEvent.Builder spanId(Optional<String> spanId)
Alias for calling Builder.spanId with
spanId.orElse(null).
-
spanId
final InsertProjectLogsEvent.Builder spanId(JsonField<String> spanId)
Sets Builder.spanId to an arbitrary JSON value.
You should usually call Builder.spanId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
spanParents
final InsertProjectLogsEvent.Builder spanParents(List<String> spanParents)
Use
span_id,root_span_id, andspan_parentsinstead of_parent_id, which is now deprecated. The span_id is a unique identifier describing the row's place in the a trace, and the root_span_id is a unique identifier for the whole trace. See the guide for full details.For example, say we have logged a row
{"id": "abc", "span_id": "span0", "root_span_id": "root_span0", "input": "foo", "output": "bar", "expected": "boo", "scores": {"correctness": 0.33}}. We can create a sub-span of the parent row by logging{"id": "llm_call", "span_id": "span1", "root_span_id": "root_span0", "span_parents": ["span0"], "input": {"prompt": "What comes after foo?"}, "output": "bar", "metrics": {"tokens": 1}}. In the webapp, only the root span row"abc"will show up in the summary view. You can view the full trace hierarchy (in this case, the"llm_call"row) by clicking on the "abc" row.If the row is being merged into an existing row, this field will be ignored.
-
spanParents
final InsertProjectLogsEvent.Builder spanParents(Optional<List<String>> spanParents)
Alias for calling Builder.spanParents with
spanParents.orElse(null).
-
spanParents
final InsertProjectLogsEvent.Builder spanParents(JsonField<List<String>> spanParents)
Sets Builder.spanParents to an arbitrary JSON value.
You should usually call Builder.spanParents with a well-typed
List<String>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addSpanParent
final InsertProjectLogsEvent.Builder addSpanParent(String spanParent)
Adds a single String to spanParents.
-
tags
final InsertProjectLogsEvent.Builder tags(List<String> tags)
A list of tags to log
-
tags
final InsertProjectLogsEvent.Builder tags(Optional<List<String>> tags)
Alias for calling Builder.tags with
tags.orElse(null).
-
tags
final InsertProjectLogsEvent.Builder tags(JsonField<List<String>> tags)
Sets Builder.tags to an arbitrary JSON value.
You should usually call Builder.tags with a well-typed
List<String>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addTag
final InsertProjectLogsEvent.Builder addTag(String tag)
-
additionalProperties
final InsertProjectLogsEvent.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final InsertProjectLogsEvent.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final InsertProjectLogsEvent.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final InsertProjectLogsEvent.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final InsertProjectLogsEvent.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final InsertProjectLogsEvent build()
Returns an immutable instance of InsertProjectLogsEvent.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-