azure-sdk-for-net icon indicating copy to clipboard operation
azure-sdk-for-net copied to clipboard

Fix OTEL metrics provider to support IDeferredMeterProviderBuilder

Open smbecker opened this issue 2 years ago • 9 comments

This PR fixes an issue when using the OpenTelemetry Hosting Extensions (i.e. AddOpenTelemetryMetrics) where metrics are not getting published. The metrics exporter is not looking for IDeferredMeterProviderBuilder, so the inner handler was never getting configured with the exporter.

smbecker avatar May 10 '22 21:05 smbecker

Thank you for your contribution @smbecker! We will review the pull request and get back to you soon.

ghost avatar May 10 '22 21:05 ghost

CLA assistant check
All CLA requirements met.

ghost avatar May 10 '22 21:05 ghost

Please split the PR to address one concern at a time. Thanks!

cijothomas avatar May 11 '22 21:05 cijothomas

Please split the PR to address one concern at a time. Thanks!

Done, I'll open a separate PR for adding support for long metric types.

smbecker avatar May 12 '22 18:05 smbecker

Hi @smbecker. Thank you for your interest in helping to improve the Azure SDK experience and for your contribution. We've noticed that there hasn't been recent engagement on this pull request. If this is still an active work stream, please let us know by pushing some changes or leaving a comment. Otherwise, we'll close this out in 7 days.

ghost avatar Jul 15 '22 10:07 ghost

@smbecker Are you working on this? @rajkumar-rangaraj / @vishweshbankwar - could you help review/merge this PR?

cijothomas avatar Jul 15 '22 15:07 cijothomas

@smbecker - Thanks for the PR - Could you please clarify the issue?

This PR fixes an issue when using the OpenTelemetry Hosting Extensions (i.e. AddOpenTelemetryMetrics) where metrics are not getting published.

Do you mean the metrics are not getting exported?

vishweshbankwar avatar Jul 15 '22 16:07 vishweshbankwar

@smbecker - Thanks for the PR - Could you please clarify the issue?

This PR fixes an issue when using the OpenTelemetry Hosting Extensions (i.e. AddOpenTelemetryMetrics) where metrics are not getting published.

Do you mean the metrics are not getting exported?

@smbecker - Could you please follow this for the proposed change?

In case of Azure Monitor, MetricReaderOptions part is not configurable at this moment. We will revisit this once we have more details.

vishweshbankwar avatar Jul 15 '22 18:07 vishweshbankwar

Hi @smbecker. Thank you for your interest in helping to improve the Azure SDK experience and for your contribution. We've noticed that there hasn't been recent engagement on this pull request. If this is still an active work stream, please let us know by pushing some changes or leaving a comment. Otherwise, we'll close this out in 7 days.

ghost avatar Sep 16 '22 10:09 ghost

Hi @smbecker. Thank you for your interest in helping to improve the Azure SDK experience and for your contribution. We've noticed that there hasn't been recent engagement on this pull request. If this is still an active work stream, please let us know by pushing some changes or leaving a comment. Otherwise, we'll close this out in 7 days.

ghost avatar Nov 25 '22 10:11 ghost

Hi @smbecker. Thank you for your contribution. Since there hasn't been recent engagement, we're going to close this out. Feel free to respond with a comment containing "/reopen" if you'd like to continue working on these changes. Please be sure to use the command to reopen or remove the "no-recent-activity" label; otherwise, this is likely to be closed again with the next cleanup pass.

ghost avatar Dec 02 '22 17:12 ghost