-
Notifications
You must be signed in to change notification settings - Fork 40
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
feat: add opentelemetry-resource-detector crate #49
feat: add opentelemetry-resource-detector crate #49
Conversation
Adds the implementation of the OS and Process resource detectors as their resource attributes are experimental.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #49 +/- ##
=======================================
+ Coverage 50.1% 50.5% +0.4%
=======================================
Files 32 34 +2
Lines 4358 4397 +39
=======================================
+ Hits 2184 2223 +39
Misses 2174 2174 ☔ View full report in Codecov by Sentry. |
@@ -0,0 +1,18 @@ | |||
[package] | |||
name = "opentelemetry-resource-detector" |
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.
name = "opentelemetry-resource-detector" | |
name = "opentelemetry-resource-detectors" |
Would it make sense to use plural name, given this has multiple detectors!
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.
Make sense to me, changed in 380ca69
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.
Thanks.
} | ||
} | ||
|
||
#[cfg(target_os = "linux")] |
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.
nothing linux specific right?
homepage = "https://github.com/open-telemetry/opentelemetry-rust-contrib/tree/main/opentelemetry-resource-detectors" | ||
repository = "https://github.com/open-telemetry/opentelemetry-rust-contrib/tree/main/opentelemetry-resource-detectors" | ||
readme = "README.md" | ||
keywords = ["opentelemetry", "resource", "detector"] |
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.
Not sure if resource
and detector
are best keywords. Maybe tracing
?
Moves the implementation of the OS and Process resource detectors from the opentelemetry-sdk to its own contrib crate. The reason behind it is due to their experimental nature in semantic conventions:
Discussion: open-telemetry/opentelemetry-rust#1610
Changes
Adds a new crate for contrib resource detectors.
Merge requirement checklist
CHANGELOG.md
files updated for non-trivial, user-facing changes