
cloudflare-log-collector Go API
Auto-generated reference documentation from the Go source code.
cloudflare
GraphQL API client for Cloudflare Analytics. Query builders, response parsing, retry logic.
collector
Firewall event and HTTP traffic poll loops. Orchestrates Cloudflare queries and Loki shipping.
config
YAML configuration loading with environment variable expansion and validation.
lifecycle
Background service lifecycle manager with panic recovery and supervised restarts.
loki
Loki push API client with batching, retry, and multi-tenant support.
metrics
Prometheus metric definitions for poll health, firewall events, HTTP traffic, and Loki push status.
telemetry
OpenTelemetry tracer setup, span helpers, and slog trace correlation handler.