You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(errortracking): wire error-tracking handler and add E2E tests (#52488)
> **Stacked PR 4/4** — part of [#50607](#50607). Builds on [stack-3 #52487](#52487).
### What does this PR do?
Wires the error-tracking handler into the agent and validates the full pipeline end-to-end:
- **Config defaults** — adds `buffer_size`, `flush_interval`, `bouncer_window` to `common_settings.go`
- **Log setup** — wires `errortracking.Handler` into `buildSlogLogger` as a synchronous sibling handler
- **Agent run command** — installs an `fx.Lifecycle` hook that starts/stops the handler
- **E2E test suite** (`test/new-e2e/tests/agent-telemetry/`) — provisions a real AWS EC2 VM via Pulumi, installs the agent with a Python check that logs errors and raises an exception. Asserts that error log payloads reach the internal telemetry intake. Tests both `errortracking.enabled: true` and the default disabled state.
- **CI** — extends `.on_agenttelemetry_or_e2e_changes` with `test/new-e2e/tests/agent-telemetry/**/*`
### Stack
1. [stack-1 #52485] Core `pkg/util/log/errortracking/` package
2. [stack-2 #52486] agenttelemetry component extensions + sender refactor
3. [stack-3 #52487] FakeIntake aggregator/client + CI scaffolding
4. **This PR** — agent wiring + E2E test
Co-authored-by: paola.ducolin <paola.ducolin@datadoghq.com>
0 commit comments