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

tracer: check for (service,env) matching in dynamic config #2365

Merged
merged 2 commits into from
Nov 17, 2023

Conversation

ahmed-mez
Copy link
Contributor

What does this PR do?

Skip configs if the service or env in the config do not match the tracer's.

Motivation

Pass the test case test_not_match_service_target in parametric https://github.com/DataDog/system-tests/blob/7cbb0153babff6b80cde7a6425ab41adcdffe014/tests/parametric/test_dynamic_configuration.py#L156

Reviewer's Checklist

  • Changed code has unit tests for its functionality at or near 100% coverage.
  • There is a benchmark for any new code, or changes to existing code.
  • If this interacts with the agent in a new way, a system test has been added.

For Datadog employees:

  • If this PR touches code that handles credentials of any kind, such as Datadog API keys, I've requested a review from @DataDog/security-design-and-guidance.
  • This PR doesn't touch any of that.

Unsure? Have a question? Request a review!

@ahmed-mez ahmed-mez requested a review from a team November 17, 2023 13:59
Copy link
Contributor

@darccio darccio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ahmed-mez ahmed-mez enabled auto-merge (squash) November 17, 2023 14:04
@ahmed-mez ahmed-mez enabled auto-merge (squash) November 17, 2023 14:13
@ahmed-mez ahmed-mez merged commit f952c00 into main Nov 17, 2023
51 checks passed
@ahmed-mez ahmed-mez deleted the ahmed/dynamic-config-part5 branch November 17, 2023 14:20
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.

None yet

2 participants