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

refactor(sdk-trace-base): rename activeSpanProcessor private property #5211

Merged

Conversation

david-luna
Copy link
Contributor

Which problem is this PR solving?

Closes #5203

Short description of the changes

  • changed the name of the property to follow conventions
  • update the tests using it

Type of change

Please delete options that are not relevant.

  • Refactor (non-breaking change)

How Has This Been Tested?

  • npm run compile at root
  • npm run test at root

Checklist:

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

@david-luna david-luna requested a review from a team as a code owner November 27, 2024 15:57
Copy link

codecov bot commented Nov 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.14%. Comparing base (4a394cc) to head (021f7a7).
Report is 5 commits behind head on next.

Additional details and impacted files
@@            Coverage Diff             @@
##             next    #5211      +/-   ##
==========================================
- Coverage   93.15%   93.14%   -0.01%     
==========================================
  Files         315      315              
  Lines        8113     8102      -11     
  Branches     1633     1633              
==========================================
- Hits         7558     7547      -11     
  Misses        555      555              
Files with missing lines Coverage Δ
...elemetry-sdk-trace-base/src/BasicTracerProvider.ts 96.26% <100.00%> (+0.57%) ⬆️

... and 2 files with indirect coverage changes

@@ -24,6 +24,7 @@
### :house: (Internal)

* chore: remove checks for unsupported node versions [#4341](https://github.com/open-telemetry/opentelemetry-js/pull/4341) @dyladan
* refactor(sdk-trace-base): remove `BasicTracerProvider._registeredSpanProcessors` private property. [#5134](https://github.com/open-telemetry/opentelemetry-js/pull/5177) @david-luna
* refactor(sdk-trace-base): remove `BasicTracerProvider._registeredSpanProcessors` private property. [#5134](https://github.com/open-telemetry/opentelemetry-js/pull/5134) @david-luna
Copy link
Contributor Author

Choose a reason for hiding this comment

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

note for reviewer: the link was incorrect

@@ -69,8 +69,7 @@ export class BasicTracerProvider implements TracerProvider {
private readonly _config: TracerConfig;
private readonly _tracers: Map<string, Tracer> = new Map();
private readonly _resource: IResource;

private activeSpanProcessor: MultiSpanProcessor;
private readonly _activeSpanProcessor: MultiSpanProcessor;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

note for reviewer: also made it readonly because is not meant to be changed once is set in the constructor

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.

Thanks for taking care of this 🙌

@pichlermarc pichlermarc merged commit 810b618 into open-telemetry:next Nov 27, 2024
18 checks passed
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