How recepbaykara/kong-dynatrace works
kong-dynatrace is a Kong Gateway plugin that adds distributed-tracing context to upstream requests and forwards per-request metrics to Dynatrace. Its documented workflow spans Kong’s access, header_filter, and log phases; the schema defines plugin configuration. No source excerpts were provided, so the relationships below rely on the README’s workflow description, and handler responsibilities share the documented handler.lua path.
Main entry points: handler.lua Trace injection · schema.lua Plugin config
Components 8
Kong plugin
- Plugin config
schema.lua - Trace injection
handler.lua - Status capture
handler.lua
Telemetry delivery
- Metric formatting
handler.lua - Async dispatch
handler.lua
Other components
- Kong Gateway
- Upstream service
- Dynatrace API
Connections 7
- Kong Gateway → Plugin config: loads settings
README.md - Kong Gateway → Trace injection: runs access phase
README.md - Kong Gateway → Status capture: runs header_filter
README.md - Kong Gateway → Metric formatting: runs log phase
README.md - Trace injection → Upstream service: sets traceparent
README.md - Metric formatting → Async dispatch: formats then dispatches
README.md - Async dispatch → Dynatrace API: posts metrics
README.md