-
Notifications
You must be signed in to change notification settings - Fork 15
feat: support origin detection #214
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
Conversation
| result.metadata[ConfigName::AGENT_URL] = | ||
| ConfigMetadata(ConfigName::AGENT_URL, url, origin); | ||
|
|
||
| /// Starting Agent X, the admission controller inject a unique identifier |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- find the datadog agent version
Datadog Summary✅ Code Quality ✅ Code Security ✅ Dependencies Was this helpful? Give us feedback! |
Origin Detection allows to detect where the contaienr traces come from, and add container tags automatically to the local root span.
462041e to
fdb6393
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #214 +/- ##
==========================================
- Coverage 87.02% 86.79% -0.23%
==========================================
Files 80 80
Lines 5140 5210 +70
==========================================
+ Hits 4473 4522 +49
- Misses 667 688 +21 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Most of my comments are nit/picky ones.
However there is one env variable that is not set according to the specifications.
| } | ||
| }, | ||
| { | ||
| "name": "dev", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will be annoying but that would be cool to add documentation somewhere on how to use that (if it is supposed to be used by devs).
It does not need to be in that PR.
Co-authored-by: Louis Tricot <75956635+dubloom@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
| #endif | ||
| } // namespace | ||
|
|
||
| Optional<std::string> find_docker_container_id(std::istream& source) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| Optional<std::string> find_docker_container_id(std::istream& source) { | |
| // this function only exists for testing purposes | |
| Optional<std::string> find_docker_container_id(std::istream& source) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's litterally mentionned in the header file:
dd-trace-cpp/src/datadog/platform_util.h
Line 88 in 29f6a50
| /// This function is exposed mainly for testing purposes. |
Description
Origin Detection allows to detect where the contaienr traces come from, and add container tags automatically to the local root span.
Resolves #193
Motivation
Feature request #193
Additional Notes
Jira ticket: APMAPI-1404