Package com.anthropic.core.opentelemetry
Class OpenTelemetryTraces
-
- All Implemented Interfaces:
public final class OpenTelemetryTracesThe
tracesfield of theopenTelemetryclient option.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classOpenTelemetryTraces.BuilderA builder for OpenTelemetryTraces.
-
Method Summary
Modifier and Type Method Description final Booleanenabled()Whether the client emits spans. final OpenTelemetryContentModecontentMode()Whether the client's spans hold the content of its requests and responses. final Optional<Long>maxContentBytes()The most content that one span holds in OpenTelemetryContentMode.CONTENT mode. final OpenTelemetryTraces.BuildertoBuilder()Booleanequals(Object other)IntegerhashCode()StringtoString()final static OpenTelemetryTraces.Builderbuilder()Returns a mutable builder for constructing an instance of OpenTelemetryTraces. -
-
Method Detail
-
enabled
final Boolean enabled()
Whether the client emits spans. Defaults to
true. Whenfalse, the other settings are not used.
-
contentMode
final OpenTelemetryContentMode contentMode()
Whether the client's spans hold the content of its requests and responses. Defaults to OpenTelemetryContentMode.METADATA_ONLY.
-
maxContentBytes
final Optional<Long> maxContentBytes()
The most content 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.
-
toBuilder
final OpenTelemetryTraces.Builder toBuilder()
-
builder
final static OpenTelemetryTraces.Builder builder()
Returns a mutable builder for constructing an instance of OpenTelemetryTraces.
-
-
-
-