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

trace: switch to parent context references #687

Merged
merged 3 commits into from
Jan 1, 2022

Conversation

jtescher
Copy link
Member

Updates Tracer::start_with_context to accepet a reference instead of an owned parent Context, and adds Tracer::build_with_context to allow a parent context reference to be passed with a builder as well. This also removes the need for SpanBuilders to store a context.

Updates `Tracer::start_with_context` to accepet a reference instead of an
owned parent `Context`, and adds `Tracer::build_with_context` to allow a
parent context reference to be passed with a builder as well. This also
removes the need for `SpanBuilder`s to store a context.
@jtescher jtescher requested a review from a team as a code owner December 31, 2021 17:57
@codecov
Copy link

codecov bot commented Dec 31, 2021

Codecov Report

Merging #687 (d7e652a) into main (482772f) will decrease coverage by 0.07%.
The diff coverage is 92.68%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #687      +/-   ##
==========================================
- Coverage   63.81%   63.73%   -0.08%     
==========================================
  Files          96       96              
  Lines        7725     7708      -17     
==========================================
- Hits         4930     4913      -17     
  Misses       2795     2795              
Impacted Files Coverage Δ
opentelemetry/src/global/trace.rs 22.95% <71.42%> (ø)
opentelemetry/src/sdk/trace/tracer.rs 90.81% <92.85%> (-0.19%) ⬇️
opentelemetry/src/trace/noop.rs 75.51% <100.00%> (+0.25%) ⬆️
opentelemetry/src/trace/tracer.rs 60.60% <100.00%> (-6.90%) ⬇️

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 482772f...d7e652a. Read the comment docs.

@jtescher jtescher merged commit 28d2f28 into open-telemetry:main Jan 1, 2022
@jtescher jtescher deleted the context-references branch January 1, 2022 21:57
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