Bridge AI agents to observability backends
## OpenTelemetry MCP Server: Vendor-Neutral Observability The **OpenTelemetry MCP Server** integrates OpenTelemetry into Google Antigravity. This provides vendor-neutral telemetry collection for traces, metrics, and logs exportable to any backend. ### Why OpenTelemetry MCP? OpenTelemetry is the industry standard: - **Vendor Neutral**: Export to any backend - **Unified**: Traces, metrics, logs together - **CNCF Project**: Industry-backed standard - **Auto-Instrumentation**: Easy setup - **Extensible**: Custom instrumentation ### Key Features #### 1. Tracing ```python from opentelemetry import trace from opentelemetry.sdk.trace import TracerProvider provider = TracerProvider() trace.set_tracer_provider(provider) tracer = trace.get_tracer(__name__) with tracer.start_as_current_span("process-request") as span: span.set_attribute("user.id", "123") ``` #### 2. Metrics ```python from opentelemetry import metrics meter = metrics.get_meter(__name__) requests_counter = meter.create_counter("http.requests") requests_counter.add(1, {"method": "GET", "status": "200"}) latency_histogram = meter.create_histogram("http.duration") latency_histogram.record(0.15, {"endpoint": "/api"}) ``` ### Configuration ```json { "mcpServers": { "opentelemetry": { "command": "npx", "args": ["-y", "@anthropic/mcp-otel"], "env": { "OTEL_EXPORTER_OTLP_ENDPOINT": "http://localhost:4317", "OTEL_SERVICE_NAME": "my-service" } } } } ``` ### Use Cases **Distributed Tracing**: Trace requests across services. **Custom Metrics**: Business and technical metrics. **Backend Flexibility**: Switch backends without code changes. The OpenTelemetry MCP Server brings standard observability to Antigravity.
{
"mcpServers": {
"opentelemetry": {
"mcpServers": {
"otel": {
"env": {
"LOKI_URL": "http://localhost:3100",
"PROMETHEUS_URL": "http://localhost:9090"
},
"args": [
"otel-mcp"
],
"command": "uvx"
}
}
}
}
}