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

Simplify trace core traits #664

Merged
merged 5 commits into from
Nov 22, 2021
Merged

Conversation

jtescher
Copy link
Member

@jtescher jtescher commented Nov 3, 2021

This patch removes the std::fmt::Debug and 'static requirements from the TracerProvider, Tracer, and Span traits as they are not generally necessary. 'static is only required in the global module context.

This patch removes the `std::fmt::Debug` and `'static` requirements from
the `TracerProvider`, `Tracer`, and `Span` traits as they are not
generally necessary. `'static` is only required in the global module
context.
@jtescher jtescher requested a review from a team as a code owner November 3, 2021 02:55
@codecov
Copy link

codecov bot commented Nov 3, 2021

Codecov Report

Merging #664 (94dc9bc) into main (bfde694) will increase coverage by 0.39%.
The diff coverage is 10.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #664      +/-   ##
==========================================
+ Coverage   63.41%   63.81%   +0.39%     
==========================================
  Files          95       95              
  Lines        7796     7748      -48     
==========================================
  Hits         4944     4944              
+ Misses       2852     2804      -48     
Impacted Files Coverage Δ
opentelemetry/src/trace/span.rs 86.04% <ø> (ø)
opentelemetry/src/trace/tracer.rs 67.50% <ø> (ø)
opentelemetry/src/global/trace.rs 22.22% <10.00%> (+4.50%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bfde694...94dc9bc. Read the comment docs.

Copy link
Contributor

@djc djc left a comment

Choose a reason for hiding this comment

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

Makes sense to me, nice!

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.

Looks good!

@TommyCpp TommyCpp merged commit b3fa553 into open-telemetry:main Nov 22, 2021
realtimetodie pushed a commit to realtimetodie/opentelemetry-rust that referenced this pull request Dec 4, 2021
* Simplify trace core traits

This patch removes the `std::fmt::Debug` and `'static` requirements from
the `TracerProvider`, `Tracer`, and `Span` traits as they are not
generally necessary. `'static` is only required in the global module
context.

* Remove tests that rely on debug impls

* Fix clippy lints

Co-authored-by: Zhongyang Wu <zhongyang.wu@outlook.com>
realtimetodie pushed a commit to realtimetodie/opentelemetry-rust that referenced this pull request Dec 4, 2021
* Simplify trace core traits

This patch removes the `std::fmt::Debug` and `'static` requirements from
the `TracerProvider`, `Tracer`, and `Span` traits as they are not
generally necessary. `'static` is only required in the global module
context.

* Remove tests that rely on debug impls

* Fix clippy lints

Co-authored-by: Zhongyang Wu <zhongyang.wu@outlook.com>
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.

None yet

3 participants