Model Providers
Anthropic
If you use Anthropic models within your application, you can trace, monitor, and analyze them with Judgment. You can do this by either
- Judgeval Wrap: Add our wrap around the initialization of your client
- OpenTelemetry: Use the AnthropicInstrumentor library to wrap Anthropic SDK calls and send Otel spans to Judgment.
Judgeval Wrap
from anthropic import Anthropic
from judgeval import Judgeval
client = Judgeval(project_name="anthropic_project")
tracer = client.tracer.create()
anthropic_client = Anthropic()
wrapped_client = tracer.wrap(anthropic_client) # Use wrapped_client from here onOpenTelemetry
from judgeval import Judgeval
# Make sure you installed the dependency: opentelemetry-instrumentation-anthropic
from opentelemetry.instrumentation.anthropic import AnthropicInstrumentor
client = Judgeval(project_name="anthropic_project")
tracer = client.tracer.create()
AnthropicInstrumentor().instrument()