Learn how to instrument Google Agent Development Kit (ADK) applications with LangWatch.
GOOGLE_API_KEY
environment variable for Gemini API access@langwatch.trace()
decorator:
langwatch.setup()
: Initializes the LangWatch SDK, which includes setting up an OpenTelemetry trace exporter. This exporter is ready to receive spans from any OpenTelemetry-instrumented library in your application.
GoogleADKInstrumentor()
: The OpenInference instrumentor automatically patches Google ADK components to create OpenTelemetry spans for their operations, including:
@langwatch.trace()
to add additional context and metadata to your traces, but it’s not required for basic functionality.
langwatch.setup()
handles everything.instrumentors
list.@langwatch.trace()
decorator is optional - the OpenInference instrumentor will capture all ADK activity automatically.LANGWATCH_API_KEY
is set in the environment.langwatch.setup()
and that your agent code is being executed.