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

Produs Versiuni
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided)