Skip to content

Comparison with other Cloudflare telemetry paths

OptionInput and scopeOutputMain trade-off
cf2otelPolls non-Enterprise Cloudflare read APIs for Access, HTTP, AI Gateway, audit, firewall, DNS, Web Analytics, Gateway DNS and supported platform analyticsOTLP logs, metrics and tracesNeeds polling checkpoints; raw HTTP events are sampled and Access history is short
cloudflare-log-collectorPolls Cloudflare APIs for HTTP, audit, firewall and RUM dataLoki push, Prometheus metrics and OTel tracesIts source coverage and wire formats differ from cf2otel's
cf-log-forwarderPolls Cloudflare APIs for Access, audit, HTTP, firewall and DNS dataCEF over syslog or JSONLHas persisted cursors and a rich CLI; cf2otel targets OTLP and also collects supported platform analytics
Cloudflare native AI Gateway OTel exportEmits an AI Gateway request span as requests happenOTLP tracesNo historical backfill and a smaller span attribute set

cf2otel is useful when Logpush or Enterprise Logpull is unavailable and when a single OTLP pipeline is wanted for the supported datasets. It does not claim a complete HTTP request census: httpRequestsAdaptive is sampled. Aggregate request rates come from httpRequestsAdaptiveGroups.

Cloudflare's native AI Gateway export sends one cf.aig.request span per request with model, provider, token counts, cost and optional input/output messages. cf2otel reconstructs GenAI spans from the AI Gateway log API, adds cache, status, timing and other available request details, and can link a caller trace when request_head includes traceparent. Body capture is opt-in and capped. Compare the two outputs for your traffic before disabling native export.