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

Allow static str and string in span methods #654

Merged
merged 2 commits into from
Oct 23, 2021

Conversation

jtescher
Copy link
Member

Improves performance and ergonomics by allowing &'static str or String types to be passed to span methods. Also clarifies the intention behind the object safe trait variants in the global trace module.

@codecov
Copy link

codecov bot commented Oct 17, 2021

Codecov Report

❗ No coverage uploaded for pull request base (main@c92e83d). Click here to learn what that means.
The diff coverage is 45.09%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #654   +/-   ##
=======================================
  Coverage        ?   62.13%           
=======================================
  Files           ?       95           
  Lines           ?     7719           
  Branches        ?        0           
=======================================
  Hits            ?     4796           
  Misses          ?     2923           
  Partials        ?        0           
Impacted Files Coverage Δ
opentelemetry/src/trace/noop.rs 76.00% <0.00%> (ø)
opentelemetry/src/global/trace.rs 20.16% <39.47%> (ø)
opentelemetry/src/trace/context.rs 46.42% <50.00%> (ø)
opentelemetry/src/sdk/trace/span.rs 95.57% <100.00%> (ø)
opentelemetry/src/trace/span.rs 86.04% <100.00%> (ø)

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 c92e83d...96a6242. Read the comment docs.

Improves performance and ergonomics by allowing `&'static str` or
`String` types to be passed to span methods. Also clarifies the
intention behind the object safe trait variants in the global trace
module.
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 👍

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

2 participants