Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Migrate API_KEY_MATCHER and log_schema() into DatadogAgentSource #8789

Merged
merged 3 commits into from
Aug 19, 2021

Conversation

blt
Copy link
Contributor

@blt blt commented Aug 18, 2021

This commit removes a lazy_static and call to a lazy_static from the
DatadogAgentSource. As a part of #8512 I spent some time trying to remove warp
from the agent source to see its effect and found that, on the whole, it would
not really be worth all that much. warp might bloat our stack traces somewhat
but is lean internally. That said, I did find that I could remove some
serialization from the source, primarily by migrating globally retrieved types
into the source struct itself.

See also #8472

Signed-off-by: Brian L. Troutwine brian@troutwine.us

This commit removes a lazy_static and call to a lazy_static from the
DatadogAgentSource. As a part of #8512 I spent some time trying to remove warp
from the agent source to see its effect and found that, on the whole, it would
not really be worth all that much. warp might bloat our stack traces somewhat
but is lean internally. That said, I did find that I could remove some
serialization from the source, primarily by migrating globally retrieved types
into the source struct itself.

See also #8472

Signed-off-by: Brian L. Troutwine <brian@troutwine.us>
@blt blt requested review from jszwedko, bruceg and prognant August 18, 2021 23:58
@netlify
Copy link

netlify bot commented Aug 18, 2021

✔️ Deploy Preview for vector-project canceled.

🔨 Explore the source changes: 54389e6

🔍 Inspect the deploy log: https://app.netlify.com/sites/vector-project/deploys/611e954d3595030007bf3e78

@blt blt changed the title Migrate API_KEY_MATCHER and log_schema() into DatadogAgentSource chore: Migrate API_KEY_MATCHER and log_schema() into DatadogAgentSource Aug 18, 2021
src/sources/datadog/agent.rs Outdated Show resolved Hide resolved
Signed-off-by: Brian L. Troutwine <brian@troutwine.us>

Co-authored-by: Jesse Szwedko <jesse@szwedko.me>
Signed-off-by: Brian L. Troutwine <brian@troutwine.us>
@blt blt merged commit e4483bb into master Aug 19, 2021
@blt blt deleted the no_lazy_static_in_dd_agent branch August 19, 2021 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants