Package com.anthropic.core.opentelemetry
Class OpenTelemetryTraces.Builder
-
- All Implemented Interfaces:
public final class OpenTelemetryTraces.BuilderA builder for OpenTelemetryTraces.
-
-
Method Summary
Modifier and Type Method Description final OpenTelemetryTraces.Builderenabled(Boolean enabled)Whether the client emits spans. final OpenTelemetryTraces.BuildercontentMode(OpenTelemetryContentMode contentMode)Whether the client's spans hold the content of its requests and responses. final OpenTelemetryTraces.BuildermaxContentBytes(Long maxContentBytes)The most content, in bytes of UTF-8, that one span holds in OpenTelemetryContentMode.CONTENT mode. final OpenTelemetryTraces.BuildermaxContentBytes(Long maxContentBytes)Alias for Builder.maxContentBytes that takes an unboxed primitive. final OpenTelemetryTraces.BuildermaxContentBytes(Optional<Long> maxContentBytes)Alias for calling Builder.maxContentBytes with maxContentBytes.orElse(null).final OpenTelemetryTracesbuild()Returns an immutable instance of OpenTelemetryTraces. -
-
Method Detail
-
enabled
final OpenTelemetryTraces.Builder enabled(Boolean enabled)
Whether the client emits spans. Defaults to
true. Whenfalse, the other settings are not used.
-
contentMode
final OpenTelemetryTraces.Builder contentMode(OpenTelemetryContentMode contentMode)
Whether the client's spans hold the content of its requests and responses. Defaults to OpenTelemetryContentMode.METADATA_ONLY.
-
maxContentBytes
final OpenTelemetryTraces.Builder maxContentBytes(Long maxContentBytes)
The most content, in bytes of UTF-8, that one span holds in OpenTelemetryContentMode.CONTENT mode. Content over it is removed from the span, which then has the
anthropic.content.truncatedattribute. Defaults to 0.75 MB.
-
maxContentBytes
final OpenTelemetryTraces.Builder maxContentBytes(Long maxContentBytes)
Alias for Builder.maxContentBytes that takes an unboxed primitive.
-
maxContentBytes
final OpenTelemetryTraces.Builder maxContentBytes(Optional<Long> maxContentBytes)
Alias for calling Builder.maxContentBytes with
maxContentBytes.orElse(null).
-
build
final OpenTelemetryTraces build()
Returns an immutable instance of OpenTelemetryTraces.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-