You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The scope provided by the user is ignored, and the meter scope is set to the factory.
Regression?
No response
Known Workarounds
No response
Configuration
No response
Other information
No response
The text was updated successfully, but these errors were encountered:
ghost
added
needs-area-label
An area label is needed to ensure this gets routed to the appropriate area owners
untriaged
New issue has not been triaged by the area owner
labels
May 24, 2023
Uh oh!
There was an error while loading. Please reload this page.
Description
A meter factory sets the scope of the meter it creates to itself:
runtime/src/libraries/Microsoft.Extensions.Diagnostics/src/Metrics/DefaultMeterFactory.cs
Lines 50 to 51 in ce689d9
However, a scope can be provided on
MeterOptions.Scope
, which passed toCreate
.Create
should probably throw an error if a scope is specified. Otherwise there could be confusion about why the specified scope value wasn't used.Reproduction Steps
Expected behavior
Throw an error.
Actual behavior
The scope provided by the user is ignored, and the meter scope is set to the factory.
Regression?
No response
Known Workarounds
No response
Configuration
No response
Other information
No response
The text was updated successfully, but these errors were encountered: