Verified Provider Integration

Google Gemini Observability, Cost & Runtime Control

Trace Gemini 2.0 Flash, 1.5 Pro, and 1.5 Flash model calls with automated token attribution, latency monitoring, tool-call tracking, and execution budgets.

Early Access · 90 Days Free · No credit card requiredBuilt by the Observyze engineering team for production AI systems.
Integration Options

Instrumenting Google Gemini Applications

Observyze supports both native Google Generative AI SDK wrappers and OpenAI-compatible gateway endpoints:

Option 01

Gemini SDK Wrapper

Wraps official @google/generative-ai in Node.js or Python. Telemetry dispatches asynchronously with zero proxy latency.

Direct connection to generativelanguage.googleapis.com
Token usage and duration tracking
Client-side PII scrubbing in memory
Option 02

OpenAI-Compatible Proxy

Use your standard OpenAI client pointed to the Observyze proxy for Gemini endpoints to enforce runtime policies and circuit breakers.

Pre-dispatch prompt injection detection
Distributed circuit breakers
Encrypted BYOK Key Vault management
Code Example

Instrument Gemini in TypeScript

Wrap the Google Generative AI client instance to trace model generation:

gemini-observyze.ts
import { GoogleGenerativeAI } from "@google/generative-ai";
import { ObservyzeClient } from "@observyze/sdk";

const observyze = new ObservyzeClient({
  apiKey: process.env.OBSERVYZE_API_KEY!,
  projectId: process.env.OBSERVYZE_PROJECT_ID!,
});

// Auto-wrap Gemini client
const genAI = observyze.wrapGemini(
  new GoogleGenerativeAI(process.env.GEMINI_API_KEY!)
);

const model = genAI.getGenerativeModel({ model: "gemini-2.0-flash" });
const result = await model.generateContent("Analyze codebase security");
Developer FAQ

Frequently Asked Questions

Technical details, integration patterns, and operational controls.

Wrap your GoogleGenerativeAI client using observyze.wrapGemini(new GoogleGenerativeAI(apiKey)). All calls to getGenerativeModel and generateContent are tracked automatically.