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

feat: ignore links with invalid context #538

Merged

Conversation

TommyCpp
Copy link
Contributor

@TommyCpp TommyCpp commented May 4, 2021

  • Ignore links with invalid context
  • Fix wrong shutdown function name in READMEs.

@TommyCpp TommyCpp requested a review from a team as a code owner May 4, 2021 02:25
links
.into_iter()
.filter(|l| l.span_context().is_valid())
.collect(),
Copy link
Member

Choose a reason for hiding this comment

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

Maybe use Vec::retain instead of allocating a new one here?

@codecov
Copy link

codecov bot commented May 4, 2021

Codecov Report

Merging #538 (638463a) into main (3a8123c) will increase coverage by 0.0%.
The diff coverage is 100.0%.

Impacted file tree graph

@@          Coverage Diff          @@
##            main    #538   +/-   ##
=====================================
  Coverage   52.2%   52.2%           
=====================================
  Files         96      96           
  Lines       8505    8506    +1     
=====================================
+ Hits        4443    4447    +4     
+ Misses      4062    4059    -3     
Impacted Files Coverage Δ
opentelemetry/src/sdk/trace/span.rs 95.0% <100.0%> (ø)
opentelemetry/src/trace/tracer.rs 63.7% <100.0%> (+0.4%) ⬆️
opentelemetry/src/trace/link.rs 75.0% <0.0%> (+15.0%) ⬆️

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 3a8123c...638463a. Read the comment docs.

Copy link
Member

@jtescher jtescher 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!

@jtescher jtescher merged commit b3623ab into open-telemetry:main May 4, 2021
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