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

Add support for instrumentation scope attributes #1021

Merged
merged 22 commits into from
Apr 21, 2023

Conversation

lzchen
Copy link
Contributor

@lzchen lzchen commented Apr 9, 2023

Fixes #815

Note that according to the specs the uniqueness of an InstrumentationScope does not include the attributes.

I am new to Rust and OT-Rust so am ramping up. Please advise if Option<Vec<KeyValue>> is not the correct typing and there's some Rust-specific nuances related to memory management that I have overlooked :)

@lzchen lzchen requested a review from a team as a code owner April 9, 2023 21:37
@lzchen lzchen changed the title Add support for instrumentation scope attributes for TracerProvider Add support for instrumentation scope attributes Apr 9, 2023
@lzchen lzchen marked this pull request as draft April 9, 2023 21:41
@codecov
Copy link

codecov bot commented Apr 11, 2023

Codecov Report

Patch coverage: 55.3% and no project coverage change.

Comparison is base (93eae5d) 56.4% compared to head (0a37b69) 56.4%.

Additional details and impacted files
@@          Coverage Diff          @@
##            main   #1021   +/-   ##
=====================================
  Coverage   56.4%   56.4%           
=====================================
  Files        144     144           
  Lines      17717   17752   +35     
=====================================
+ Hits        9997   10017   +20     
- Misses      7720    7735   +15     
Impacted Files Coverage Δ
opentelemetry-api/src/global/metrics.rs 0.0% <0.0%> (ø)
opentelemetry-api/src/global/trace.rs 28.3% <0.0%> (-0.4%) ⬇️
opentelemetry-api/src/metrics/meter.rs 38.3% <0.0%> (ø)
opentelemetry-api/src/metrics/noop.rs 5.5% <0.0%> (-0.2%) ⬇️
opentelemetry-api/src/trace/mod.rs 87.2% <ø> (ø)
opentelemetry-api/src/trace/noop.rs 52.3% <0.0%> (-0.5%) ⬇️
...elemetry-contrib/src/trace/exporter/jaeger_json.rs 0.0% <0.0%> (ø)
opentelemetry-datadog/src/exporter/mod.rs 24.0% <0.0%> (-0.2%) ⬇️
opentelemetry-jaeger/src/exporter/config/mod.rs 80.8% <0.0%> (-1.3%) ⬇️
opentelemetry-sdk/src/export/trace/stdout.rs 8.1% <0.0%> (-0.2%) ⬇️
... and 7 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@lzchen lzchen marked this pull request as ready for review April 11, 2023 21:12
@lzchen
Copy link
Contributor Author

lzchen commented Apr 11, 2023

@TommyCpp

How does codecov work? Does it run on documentation testing?

@lzchen lzchen closed this Apr 12, 2023
@lzchen lzchen reopened this Apr 12, 2023
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.

LGTM. Thanks 👍

@lzchen lzchen closed this Apr 18, 2023
@lzchen lzchen reopened this Apr 18, 2023
Copy link
Member

@cijothomas cijothomas left a comment

Choose a reason for hiding this comment

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

@lzchen
Copy link
Contributor Author

lzchen commented Apr 19, 2023

@cijothomas

I haven't seen any other PRs add entries to the CHANGELOG.

@TommyCpp is there a practice for this? Do we populate the CHANGELOG all at once during release or per relevant PR?

@cijothomas
Copy link
Member

@cijothomas

I haven't seen any other PRs add entries to the CHANGELOG.

@TommyCpp is there a practice for this? Do we populate the CHANGELOG all at once during release or per relevant PR?

Irrespective of what was done in other PRs, I think all PRs affecting end users should include an entry in changelog as a good practice for any product.

@TommyCpp
Copy link
Contributor

TommyCpp commented Apr 19, 2023

@TommyCpp is there a practice for this? Do we populate the CHANGELOG all at once during release or per relevant PR?

We do have a CHANGELOG for every create. But so far the practice has been one of us collecting all PRs before a release and add them to CHANGELOG

@TommyCpp
Copy link
Contributor

Personally I'd love to require CHANGELOG entry for every PR. Makes release easier

@cijothomas
Copy link
Member

Personally I'd love to require CHANGELOG entry for every PR. Makes release easier

I agree. Adding a PR template to encourage changelogs : #1036

@lzchen
Copy link
Contributor Author

lzchen commented Apr 21, 2023

@TommyCpp
Can this be merged?

@TommyCpp TommyCpp merged commit 7b3b39d into open-telemetry:main Apr 21, 2023
@TommyCpp
Copy link
Contributor

Will take a look on remaining PRs tonight

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.

Add support for instrumentation scope attributes
4 participants