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
Currently the tags for an activity does not contain any tags indicating whether a cache lookup resulted in a miss or a hit.
This would probably be applicable to the: TryGet, GetOrDefault, GetOrSet, MemoryGet, DistributedGet activities defined in Activities.Names.
Solution
Add tags indicating whether a cache to the activity before it's disposed. e.g. "fusioncache.operation.hit": true/false
Alternatives
The current workarounds I can figure out to indicate whether a cache hit occurs on an activity that I can figure out is to attach an event handler to the FusionCache instance and enrich the ongoing or a wrapping activity from there. e.g.
Problem
Currently the tags for an activity does not contain any tags indicating whether a cache lookup resulted in a miss or a hit.
This would probably be applicable to the: TryGet, GetOrDefault, GetOrSet, MemoryGet, DistributedGet activities defined in Activities.Names.
Solution
Add tags indicating whether a cache to the activity before it's disposed. e.g. "fusioncache.operation.hit": true/false
Alternatives
The current workarounds I can figure out to indicate whether a cache hit occurs on an activity that I can figure out is to attach an event handler to the FusionCache instance and enrich the ongoing or a wrapping activity from there. e.g.
however this would also require me to set EnableSyncEventHandlersExecution to true to ensure that the activity is not disposed before setting the tag.
Additional context
I'm not really sure how this would interact with FailSafe as this is not something I personally use, but probably keep this in consideration.
The text was updated successfully, but these errors were encountered: