Skip to content

Metrics Design - #211

Merged
tarekgh merged 25 commits into
dotnet:mainfrom
tarekgh:Metrics
May 15, 2021
Merged

tarekgh merged 25 commits into
dotnet:mainfrom
tarekgh:Metrics

Conversation

@tarekgh

@tarekgh tarekgh commented Apr 29, 2021

Copy link
Copy Markdown
Member

@tarekgh tarekgh self-assigned this Apr 29, 2021
@tarekgh

tarekgh commented Apr 29, 2021

Copy link
Copy Markdown
Member Author

CC @noahfalk

@reyang reyang left a comment

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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.?

@tarekgh tarekgh May 24, 2021 •

Copy link
Copy Markdown
Member Author

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

@stephentoub stephentoub May 24, 2021 •

Copy link
Copy Markdown
Member

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
Copy Markdown
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
Copy Markdown
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