Repository navigation
Conversation
ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Free Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughAdds OpenTelemetry tracing and Prometheus metrics: new OTLP endpoint config, tracer initialization and shutdown, a Prometheus IngestMetrics type, wiring of metrics/tracing into server and handler (including /metrics endpoint), and dependency updates. Changes
Sequence DiagramsequenceDiagram
participant C as Client
participant S as Server (Fiber)
participant H as IngestHandler
participant T as Tracer (OTel)
participant M as IngestMetrics (Prometheus)
participant P as Redpanda Producer
participant R as Prometheus (scraper)
C->>S: POST /events
S->>H: forward request
H->>T: Start span (ctx)
T-->>H: span context
H->>M: Observe BatchSize
alt validation fails
H->>M: Increment EventsRejected(reason)
H-->>C: 4xx
else validation passes
H->>H: dedup checks
alt dedup error
H->>M: Increment DedupErrors
else duplicate
H->>M: Increment EventsDeduplicated
end
H->>P: Produce events
alt produce fails
H->>M: Increment ProduceErrors
H-->>C: 5xx
else produce succeeds
H->>M: Increment EventsIngested (per-site)
H->>M: Observe IngestLatency
H-->>C: 2xx
end
end
H->>T: End span
R->>M: Scrape /metrics
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
📝 Coding Plan
Note 🎁 Summarized by CodeRabbit FreeYour organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Pro by visiting https://app.coderabbit.ai/login. Comment |
|



Summary by CodeRabbit
New Features
Chores