-
Notifications
You must be signed in to change notification settings - Fork 36
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
Datadog Source Code Integration #20
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #20 +/- ##
=====================================
Coverage 40.4% 40.4%
=====================================
Files 12 12
Lines 1277 1277
=====================================
Hits 516 516
Misses 761 761 ☔ View full report in Codecov by Sentry. |
@@ -188,10 +188,13 @@ where | |||
_ => 0, | |||
}, | |||
)?; | |||
|
|||
const GIT_META_TAGS_COUNT: u32 = if matches!((option_env!("DD_GIT_REPOSITORY_URL"), option_env!("DD_GIT_COMMIT_SHA")), (Some(_), Some(_))) { 2 } else { 0 }; |
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.
nit: can we move this to top of the file with other constant?
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.
One nit
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.
Looks good, just @TommyCpp's request please.
Changes
This pull request introduces part of Datadog Source Code Integration
Added compile time env variables:
DD_GIT_REPOSITORY_URL
andDD_GIT_COMMIT_SHA
. Exporter will send this information in sampled traces.Example of usage