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

feat: add opentelemetry-resource-detector crate #49

Merged
merged 6 commits into from
Mar 14, 2024

Conversation

rogercoll
Copy link
Contributor

@rogercoll rogercoll commented Mar 13, 2024

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

  • CONTRIBUTING guidelines followed
  • Unit tests added/updated (if applicable)
  • Appropriate CHANGELOG.md files updated for non-trivial, user-facing changes
  • Changes in public API reviewed (if applicable)

Adds the implementation of the OS and Process resource detectors
as their resource attributes are experimental.
@rogercoll rogercoll requested a review from a team March 13, 2024 17:28
Copy link

codecov bot commented Mar 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 50.5%. Comparing base (93dc0d9) to head (9805203).

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

@@ -0,0 +1,18 @@
[package]
name = "opentelemetry-resource-detector"
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
name = "opentelemetry-resource-detector"
name = "opentelemetry-resource-detectors"

Would it make sense to use plural name, given this has multiple detectors!

Copy link
Contributor Author

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

Copy link
Member

@lalitb lalitb left a 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")]
Copy link
Member

Choose a reason for hiding this comment

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

nothing linux specific right?

@cijothomas cijothomas merged commit feb97a1 into open-telemetry:main Mar 14, 2024
9 checks passed
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"]
Copy link
Contributor

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?

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