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

MetricEventSource value published events don't resolve which scope they are refering to #93097

Open
noahfalk opened this issue Oct 6, 2023 · 1 comment

Comments

@noahfalk
Copy link
Member

noahfalk commented Oct 6, 2023

Description

It is supported to have multiple scopes (DI containers effectively) that each have Meters with the same names and same instruments. When the instruments are initially published the scope hash distinguishes those multiple scopes, however later when values are published the scope hash isn't available. This means if two different scopes both have a Meter named Foo and instrument named Bar, the tool listening to the events can't distinguish which one produced the data.

Reproduction Steps

Create two DI containers, then create a Meter and an instrument with identical naming in each. Produce some measurements for both. Enable MetricEventSource and listen to the measurement events.

Expected behavior

The tool should be able to distinguish one set of measurements coming from DI container 1, and a second set of measurements coming from DI container 2.

Actual behavior

There is no distinguishable information that allows correlating the measurements that came from the same DI container together across time.

Regression?

No response

Known Workarounds

No response

Configuration

No response

Other information

No response

@noahfalk
Copy link
Member Author

noahfalk commented Oct 6, 2023

@kkeirstead @tarekgh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant