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

Metrics Design #211

Merged
merged 25 commits into from
May 15, 2021
Merged

Metrics Design #211

merged 25 commits into from
May 15, 2021

Conversation

tarekgh
Copy link
Member

@tarekgh tarekgh commented Apr 29, 2021

@tarekgh tarekgh self-assigned this Apr 29, 2021
@tarekgh
Copy link
Member Author

tarekgh commented Apr 29, 2021

CC @noahfalk

Copy link
Contributor

@reyang reyang left a comment

Choose a reason for hiding this comment

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

Although the PR is marked as a "draft", it looks good to me.

@tarekgh tarekgh merged commit 3ac77d5 into dotnet:main May 15, 2021

## Overview

This document is discussing the .NET Metrics APIs design which implements the [OpenTelemetry specification](https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/api.md).
Copy link
Member

Choose a reason for hiding this comment

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

How should I think about these APIs vs the DiagnosticCounter APIs we've been using from System.Diagnostics.Tracing? When does someone choose these vs EventCounter, PollingCounter, etc.?

Copy link
Member Author

@tarekgh tarekgh May 24, 2021

Choose a reason for hiding this comment

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

We already working on doing the needed work and publishing the guide for the users currently using EventCounters. That include, having the tools like dotnet-counters work with new Metrics, migrating from EventCounter to Metrics, and allow migrated libraries/apps from EventCounters to Metrics to implement a small shim for any app compat support if necessary. We should be able to do that during .NET 6.0 release.

CC @noahfalk @shirhatti

Copy link
Member

@stephentoub stephentoub May 24, 2021

Choose a reason for hiding this comment

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

Does that mean we're deprecating DiagnosticCounter, changing all of our existing DiagnosticCounters to be based on these new APIs, etc.? I'm confused. It's strange that we just released those APIs in the last version or two, and now it seems we're saying they're obsolete.

Copy link
Member Author

Choose a reason for hiding this comment

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

We'll recommend using Metrics moving forward but we are not deprecating the Event counters in this release at least.

Copy link
Member

Choose a reason for hiding this comment

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

So I hope then we're replacing our own usage in .NET 6?

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.

6 participants