We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
opentelemetry_sdk
Originally posted by survived December 11, 2024 opentelemetry_sdk::Resource::new docs say that:
opentelemetry_sdk::Resource::new
Values are de-duplicated by key, and the first key-value pair with a non-empty string value will be retained
However, looking at the code, it's not true: actually, the last key-value pair will be retained (no matter if value is empty or not):
opentelemetry-rust/opentelemetry-sdk/src/resource/mod.rs
Lines 80 to 92 in e4cba94
The text was updated successfully, but these errors were encountered:
@pitoniak32 could you help check given you have the most experience with Resource area.
Sorry, something went wrong.
yeah I can take a look
No branches or pull requests
Discussed in #2414
Originally posted by survived December 11, 2024
opentelemetry_sdk::Resource::new
docs say that:However, looking at the code, it's not true: actually, the last key-value pair will be retained (no matter if value is empty or not):
opentelemetry-rust/opentelemetry-sdk/src/resource/mod.rs
Lines 80 to 92 in e4cba94
The text was updated successfully, but these errors were encountered: