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
We want to expose an infrastructure for telemetry. This way, individual resilience strategies can report important events in a unified way. The Polly consumers can hook to these events and build monitoring and dashboard on top.
We can consider something like:
publicabstractclassResilienceTelemetry{voidReport(stringeventName,ResilienceContextcontext);voidReport<T>(stringeventName,Tresult,ResilienceContextcontext);voidReport(stringeventName,Exceptionexception,ResilienceContextcontext);}publicabstractclassResilienceTelemetryFactory{ResilienceTelemetryCreate(ResilienceTelemetryContextcontext);}publicclassResilienceStrategyBuilderContext{// new propertypublicResilienceTelemetryTelemetry{get;}}publicclassResilienceStrategyBuilderOptions{// new propertypublicResilienceTelemetryFactoryTelemetryFactory{get;set;}=NullResilienceTelemetryFactory.Instance;}
Customer can provide their own implementation of ResilienceTelemetryFactory. We can consider having built-in ResilienceTelemetryFactory based on .NET Meter and ILoggerFactory.
The ResilienceTelemetryFactory.Create is called for each resilience strategy individually and with different context.
The text was updated successfully, but these errors were encountered:
We want to expose an infrastructure for telemetry. This way, individual resilience strategies can report important events in a unified way. The Polly consumers can hook to these events and build monitoring and dashboard on top.
We can consider something like:
Customer can provide their own implementation of
ResilienceTelemetryFactory
. We can consider having built-inResilienceTelemetryFactory
based on .NET Meter andILoggerFactory
.The
ResilienceTelemetryFactory.Create
is called for each resilience strategy individually and with different context.The text was updated successfully, but these errors were encountered: