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 package uses an `ActivityListener` to listen to feature evaluation events from the Microsoft.FeatureManagement library. When a feature flag is evaluated, the event is logged using a structured logging extension method:
20
+
The package uses an `ActivityListener` to listen to feature evaluation events from the Microsoft.FeatureManagement library. When a feature flag is evaluated, the event is logged using structured logging.
This extension method formats the event data properly for Azure Monitor ingestion using the `LoggerMessage.Define` pattern for high-performance logging. The properties dictionary is serialized to JSON and included in the log message.
22
+
The event data is formatted properly for Azure Monitor ingestion using the `LoggerMessage.Define` pattern for high-performance logging. The properties dictionary is serialized to JSON and included in the log message.
27
23
28
24
## Key Components
29
25
30
26
-**AzureMonitorEventPublisher**: Listens to Activity events from feature management and logs them using the logger extension
31
-
-**LoggerExtensions**: Provides optimized logging methods for feature evaluation events
32
27
-**AzureMonitorHostedService**: Manages the lifecycle of the event publisher
33
28
-**FeatureManagementBuilderExtensions**: Provides extension methods to register the telemetry components
0 commit comments