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

test(instr-http): remove usages of new Span #5035

Conversation

david-luna
Copy link
Contributor

Which problem is this PR solving?

The Span constructor from ' @opentelemetry/sdk-trace-base` is planned for removal from the public API . This PR anticipates the possible breaking changes derived from it

Refs #3597

Short description of the changes

  • Remove usage of new Span constructor in favour of using a mock Span and asserting over API calls

Type of change

Please delete options that are not relevant.

  • Test refactor (non-breaking change which fixes tests)

How Has This Been Tested?

  • Ran intr-http unit tests

Checklist:

  • Followed the style guidelines of this project
  • Unit tests have been modified

@david-luna david-luna requested a review from a team as a code owner October 3, 2024 14:55
@david-luna david-luna changed the title Dluna/3597 remove span constructor http instr tests(instr-http): remove usages of new Span Oct 3, 2024
@david-luna david-luna changed the title tests(instr-http): remove usages of new Span test(instr-http): remove usages of new Span Oct 3, 2024
Copy link

codecov bot commented Oct 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.26%. Comparing base (f8ab559) to head (82dbd0b).
Report is 26 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5035      +/-   ##
==========================================
- Coverage   93.39%   93.26%   -0.14%     
==========================================
  Files          46      317     +271     
  Lines         712     8194    +7482     
  Branches      120     1640    +1520     
==========================================
+ Hits          665     7642    +6977     
- Misses         47      552     +505     

see 266 files with indirect coverage changes

Copy link
Member

@pichlermarc pichlermarc left a comment

Choose a reason for hiding this comment

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

Looks great, thanks 🙂

@pichlermarc pichlermarc added this pull request to the merge queue Oct 4, 2024
Merged via the queue into open-telemetry:main with commit 7baa493 Oct 4, 2024
21 checks passed
@david-luna david-luna deleted the dluna/3597-remove-span-constructor-http-instr branch November 12, 2024 16:10
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.

2 participants