Skip to content

Emit More EventSource Data For Metrics Measurements - #104993

Merged
tarekgh merged 5 commits into
dotnet:mainfrom
tarekgh:EmitMoreEventSourceDataForMetricsMeasurments
Jul 21, 2024
Merged

Emit More EventSource Data For Metrics Measurements#104993
tarekgh merged 5 commits into
dotnet:mainfrom
tarekgh:EmitMoreEventSourceDataForMetricsMeasurments

Conversation

@tarekgh

@tarekgh tarekgh commented Jul 16, 2024

Copy link
Copy Markdown
Member

Fixes #93097 and #93767

This change enables the emission of additional metrics data during measurement publishing. Specifically, it will emit the instrument's formatted tags and hash, as well as the meter's formatted tags, scope hash, and meter hash. With this extra data, aggregators can easily differentiate between instruments created with identical parameters such as name, tags, and units. Similarly, it allows for distinguishing between meters created with the same parameters, such as meter name, version, tags, and scope.

@tarekgh

tarekgh commented Jul 16, 2024

Copy link
Copy Markdown
Member Author

/azp run runtime-libraries-coreclr outerloop

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@noahfalk noahfalk left a comment

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.

A few suggestions inline

@noahfalk

Copy link
Copy Markdown
Member

@wiktork @jander-msft - heads up since dotnet-monitor probably wants to consume this data too. Unless we get some extension the checkin deadline is the end of the week so this is likely to go fast.

@tarekgh
tarekgh force-pushed the EmitMoreEventSourceDataForMetricsMeasurments branch from ed34eae to 95024ec Compare July 21, 2024 02:06
@tarekgh

tarekgh commented Jul 21, 2024

Copy link
Copy Markdown
Member Author

/azp run runtime-libraries-coreclr outerloop

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).
@tarekgh

tarekgh commented Jul 21, 2024

Copy link
Copy Markdown
Member Author

@noahfalk I have updated the code according to our offline discussion with introducing the instrument Id in our emitted events. If you are interested in looking at the update, please look at the last commit. Thanks!

@noahfalk

Copy link
Copy Markdown
Member

LGTM!

@tarekgh
tarekgh deleted the EmitMoreEventSourceDataForMetricsMeasurments branch August 6, 2024 20:04
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.