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

[mdatagen] add support for async instruments #10159

Merged

Conversation

codeboten
Copy link
Contributor

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.

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.

Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com>
@codeboten codeboten requested a review from a team as a code owner May 15, 2024 18:22
@codeboten codeboten requested a review from atoulme May 15, 2024 18:22
@codeboten codeboten added the Skip Changelog PRs that do not require a CHANGELOG.md entry label May 15, 2024
codeboten added a commit to codeboten/opentelemetry-collector that referenced this pull request May 15, 2024
This PR follows open-telemetry#10159 and uses the new mdatagen functionality to generate
async metrics in the service.

Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com>
Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com>
Copy link

codecov bot commented May 15, 2024

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 ⚠️
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     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com>
@codeboten codeboten merged commit 28242fa into open-telemetry:main May 16, 2024
48 of 49 checks passed
@codeboten codeboten deleted the codeboten/mdatagen-observable-metric branch May 16, 2024 20:15
@github-actions github-actions bot added this to the next release milestone May 16, 2024
codeboten added a commit to codeboten/opentelemetry-collector that referenced this pull request May 21, 2024
This PR follows open-telemetry#10159 and uses the new mdatagen functionality to generate
async metrics in the service.

Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com>
andrzej-stencel pushed a commit to andrzej-stencel/opentelemetry-collector that referenced this pull request May 27, 2024
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.

---------

Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com>
codeboten added a commit that referenced this pull request May 30, 2024
This PR follows
#10159 and
uses the new mdatagen functionality to generate async metrics in the
service.

---------

Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Skip Changelog PRs that do not require a CHANGELOG.md entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants