Skip to content

fix(api): declare this parameter type in observable callbacks#3497

Merged
legendecas merged 3 commits intoopen-telemetry:mainfrom
legendecas:api/callback-this
Jan 3, 2023
Merged

fix(api): declare this parameter type in observable callbacks#3497
legendecas merged 3 commits intoopen-telemetry:mainfrom
legendecas:api/callback-this

Conversation

@legendecas
Copy link
Member

Which problem is this PR solving?

Fixes #3293

Declare the this parameter types for the observable callbacks.

This should not be a breaking change as usages without this parameter to be the expected one are not working anyways.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

  • Existing code should continue to be able to compile without any touch.

Checklist:

  • Followed the style guidelines of this project

@codecov
Copy link

codecov bot commented Dec 19, 2022

Codecov Report

Merging #3497 (f904549) into main (eecb800) will not change coverage.
The diff coverage is n/a.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3497   +/-   ##
=======================================
  Coverage   93.75%   93.75%           
=======================================
  Files         249      249           
  Lines        7610     7610           
  Branches     1587     1587           
=======================================
  Hits         7135     7135           
  Misses        475      475           

@legendecas legendecas merged commit 93222fc into open-telemetry:main Jan 3, 2023
@legendecas legendecas deleted the api/callback-this branch January 3, 2023 10:44
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.

bug(metrics-sdk): destructing ObservableResultImpl breaks collecting metrics value

3 participants