Class AnthropicTelemetry
java.lang.Object
dev.braintrust.instrumentation.anthropic.otel.AnthropicTelemetry
Entrypoint for instrumenting Anthropic clients.
-
Method Summary
Modifier and TypeMethodDescriptionstatic AnthropicTelemetryBuilderbuilder(io.opentelemetry.api.OpenTelemetry openTelemetry) Returns a newAnthropicTelemetryBuilderconfigured with the givenOpenTelemetry.static AnthropicTelemetrycreate(io.opentelemetry.api.OpenTelemetry openTelemetry) Returns a newAnthropicTelemetryconfigured with the givenOpenTelemetry.com.anthropic.client.AnthropicClientwrap(com.anthropic.client.AnthropicClient client) Wraps the provided AnthropicClient, enabling telemetry for it.
-
Method Details
-
create
Returns a newAnthropicTelemetryconfigured with the givenOpenTelemetry. -
builder
Returns a newAnthropicTelemetryBuilderconfigured with the givenOpenTelemetry. -
wrap
public com.anthropic.client.AnthropicClient wrap(com.anthropic.client.AnthropicClient client) Wraps the provided AnthropicClient, enabling telemetry for it.
-