Package com.anthropic.core.opentelemetry
Class OpenTelemetryRequestOptions.Builder
-
- All Implemented Interfaces:
public final class OpenTelemetryRequestOptions.BuilderA builder for OpenTelemetryRequestOptions.
-
-
Method Summary
Modifier and Type Method Description final OpenTelemetryRequestOptions.BuilderconversationId(String conversationId)An ID that links this request's span to the other requests of one conversation. final OpenTelemetryRequestOptions.BuilderconversationId(Optional<String> conversationId)Alias for calling Builder.conversationId with conversationId.orElse(null).final OpenTelemetryRequestOptionsbuild()Returns an immutable instance of OpenTelemetryRequestOptions. -
-
Method Detail
-
conversationId
final OpenTelemetryRequestOptions.Builder conversationId(String conversationId)
An ID that links this request's span to the other requests of one conversation. The SDK sets it as
gen_ai.conversation.id, and does not send it to the API.
-
conversationId
final OpenTelemetryRequestOptions.Builder conversationId(Optional<String> conversationId)
Alias for calling Builder.conversationId with
conversationId.orElse(null).
-
build
final OpenTelemetryRequestOptions build()
Returns an immutable instance of OpenTelemetryRequestOptions.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-