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
Polly v6.0 presents an opportunity to clarify the names prior to their wider use in events and metrics.
v5.x name
Proposed v6.0 name
Rationale
Notes
ExecutionKey
OperationKey
Policies are usable at multiple call sites. The OperationKey is a user-definable string key intended to allow tagging the operation the policy is being used for (eg "GetCustomerDetails", "[GET] github/users/x"), for distinguishing different usages in logging and metrics.
A read-only property Context.ExecutionKey => OperationKey (with suitable intellisense) could be left on Context, in recognition of the fact that the term 'execution key' does exist in some external documentation. An alternative name could be UsageKey.
ExecutionGuid
CorrelationId
CorrelationId is a more typical name for a unique id correlating all events linked to a particular request or operation.
The property has as yet formed no part of the Polly API beyond being exposed (it was added in preparation for metrics).
Polly v5.9.0 would pre-advertise the deprecations per semver, with [ObsoleteAttribute()], prior to breaking changes (removing deprecated versions) in Polly v6.0.
The text was updated successfully, but these errors were encountered:
The execution context keys
ExecutionKey
andExecutionGuid
have caused confusion with similar names.Polly v6.0 presents an opportunity to clarify the names prior to their wider use in events and metrics.
ExecutionKey
OperationKey
OperationKey
is a user-definable string key intended to allow tagging the operation the policy is being used for (eg "GetCustomerDetails", "[GET] github/users/x"), for distinguishing different usages in logging and metrics.Context.ExecutionKey => OperationKey
(with suitable intellisense) could be left onContext
, in recognition of the fact that the term 'execution key' does exist in some external documentation.An alternative name could be
UsageKey
.ExecutionGuid
CorrelationId
CorrelationId
is a more typical name for a unique id correlating all events linked to a particular request or operation.Polly v5.9.0 would pre-advertise the deprecations per semver, with
[ObsoleteAttribute()]
, prior to breaking changes (removing deprecated versions) in Polly v6.0.The text was updated successfully, but these errors were encountered: