Module http

Module http 

Source
Expand description

Axum HTTP surface for the intake.

This module composes the full router while the submodules keep protocol groups separate:

  • datadog: Datadog-compatible intake and health routes:
    • POST /api/v2/series
    • POST /api/beta/sketches
    • POST /api/v1/events_batch
    • POST /api/v1/events
    • POST /intake/
    • POST /api/v1/check_run
    • GET /api/v1/validate
  • antithesis: private scenario-control routes used by Antithesis drivers:
    • GET /antithesis/metrics/{target}
  • middleware: request body measurement used by payload assertions.
  • state: shared router state for one capture target.

Modules§

state
Shared state carried by each HTTP router.

Functions§

build_router
Build the intake router. /api/v2/series fires payload assertions. Datadog endpoints answer 202. A malformed body gets 400. An oversized body gets 413. Unmatched paths answer 200.