opentelemetry-collector icon indicating copy to clipboard operation
opentelemetry-collector copied to clipboard

[mdatagen] add support for async instruments

Open codeboten opened this issue 1 year ago • 1 comments

This PR adds the ability to configure asynchronous (observable) instruments via mdatagen. This requires providing a mechanism to set options to pass in the callbacks that will be called at the time of the observation.

codeboten avatar May 15 '24 18:05 codeboten

Codecov Report

Attention: Patch coverage is 81.08108% with 7 lines in your changes are missing coverage. Please review.

Project coverage is 91.80%. Comparing base (50b568f) to head (035a4f4). Report is 22 commits behind head on main.

Files Patch % Lines
...ereceiver/internal/metadata/generated_telemetry.go 50.00% 6 Missing and 1 partial :warning:
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #10159      +/-   ##
==========================================
+ Coverage   91.69%   91.80%   +0.11%     
==========================================
  Files         366      356      -10     
  Lines       16791    16883      +92     
==========================================
+ Hits        15396    15500     +104     
+ Misses       1056     1038      -18     
- Partials      339      345       +6     

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov[bot] avatar May 15 '24 19:05 codecov[bot]