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

Datadog Source Code Integration #20

Merged
merged 2 commits into from
Dec 19, 2023
Merged

Conversation

Hartigan
Copy link
Contributor

Changes

This pull request introduces part of Datadog Source Code Integration
Added compile time env variables: DD_GIT_REPOSITORY_URL and DD_GIT_COMMIT_SHA. Exporter will send this information in sampled traces.

Example of usage

DD_GIT_REPOSITORY_URL="git@github.com:Hartigan/opentelemetry-rust-contrib.git" DD_GIT_COMMIT_SHA="e4b2b10970d10237457a3d1a87a3e75cf41488ad" cargo build

@Hartigan Hartigan requested a review from a team December 17, 2023 11:52
Copy link

codecov bot commented Dec 17, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (c841fba) 40.4% compared to head (c5c5c28) 40.4%.
Report is 1 commits behind head on main.

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.
📢 Have feedback on the report? Share it here.

@@ -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 };
Copy link
Contributor

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?

Copy link
Contributor

@TommyCpp TommyCpp left a comment

Choose a reason for hiding this comment

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

One nit

Copy link
Contributor

@hdost hdost left a 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.

@hdost hdost merged commit a3e0d18 into open-telemetry:main Dec 19, 2023
9 checks passed
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.

4 participants