MeterScope Enum

Definition

Represents scopes used by InstrumentRule to distinguish between meters created via Meter constructors (Global) and those created via Dependency Injection with Create(MeterOptions) (Local).

This enumeration supports a bitwise combination of its member values.

C#
[System.Flags]
public enum MeterScope
Inheritance
MeterScope
Attributes

Fields

Name Value Description
None 0

No scope is specified. This field should not be used.

Global 1

Indicates Meter instances created via Meter constructors.

Local 2

Indicates Meter instances created via Dependency Injection with Create(MeterOptions).

Applies to

产品 版本
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided)