chore: refactor Datadog Status/Flare component in preparation for shared telemetry via reflector #483
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR does a bunch of refactoring around how we create/spawn the component previously known as the "Datadog Status/Flare Destination".
Primarily, it moves the code into the ADP binary crate itself, and de-componentizes it: now we just have standalone types, we spawn a standalone task, and so on. This is in preparation of having it draw its telemetry data from a new "reflector"-based pattern. We've also done some other work around
ListenAddress
to make it possible to cleanly pull the "what is our secure API listen address?" information necessary when registering ourselves as a remote agent.This PR also includes the basic code for the reflector, which is included to intend to show roughly what we'll be moving to. This PR doesn't include all of the work to actually utilize the reflector, though, which will be part of a follow-up PR.
Change Type
How did you test this PR?
Built and ran ADP locally in non-standalone mode, and ensured that the Remote Agent task that replaces the component still runs and registers ADP as a remote agent.
References
N/A