agentgateway/examples/telemetry/docker-compose.yaml
Krisztian F f4fc21f7cb
Implement OTel support for access logs (#1080)
This PR adds OpenTelemetry support for access logs with examples.

Example LogRecord in OTel collector's debugexporter:

```
2026-02-28T16:25:54.392Z      info    ResourceLog #0
 Resource SchemaURL:
 Resource attributes:
      -> service.name: Str(default)
      -> telemetry.sdk.version: Str(0.31.0)
      -> telemetry.sdk.name: Str(opentelemetry)
      -> telemetry.sdk.language: Str(rust)
      -> host.name: Str(default.default.svc.cluster.local)
      -> service.namespace: Str(default)
      -> service.version: Str(7da75b0d38c03fb76a9f8c010a4f8de0d7e2b03f-dirty)
 ScopeLogs #0
 ScopeLogs SchemaURL:
 InstrumentationScope request
 LogRecord #0
 ObservedTimestamp: 2026-02-28 16:25:53.359094924 +0000 UTC
 Timestamp: 1970-01-01 00:00:00 +0000 UTC
 SeverityText: INFO
 SeverityNumber: Info(9)
 Body: Empty()
 Attributes:
      -> gateway: Str(default/default)
      -> listener: Str(listener0)
      -> route: Str(default/route0)
      -> src.addr: Str([::1]:55174)
      -> http.method: Str(GET)
      -> http.host: Str(localhost)
      -> http.path: Str(/sse)
      -> http.version: Str(HTTP/1.1)
      -> http.status: Int(200)
      -> trace.id: Str(9b075b593dad653b104d9411cd02169c)
      -> span.id: Str(97fa138ccc3e5f65)
      -> protocol: Str(mcp)
      -> duration: Str(62288ms)
 Trace ID: 9b075b593dad653b104d9411cd02169c
 Span ID: 97fa138ccc3e5f65
 Flags: 0
```
2026-03-03 14:52:25 -08:00

21 lines
505 B
YAML

services:
jaeger:
container_name: jaeger
restart: unless-stopped
image: jaegertracing/all-in-one:latest
ports:
- "127.0.0.1:16686:16686"
- "127.0.0.1:14268:14268"
environment:
- COLLECTOR_OTLP_ENABLED=true
otel-collector:
container_name: otel-collector
image: otel/opentelemetry-collector-contrib:0.146.0
volumes:
- ./otel-collector-config.yaml:/etc/otelcol-contrib/config.yaml
ports:
- "127.0.0.1:4317:4317"
depends_on:
- jaeger