ndrwrbgs / OpenTracing-System.Diagnostics

Bridge between C# `System.Diagnostics` tracing and `OpenTracing`
MIT License
0 stars 1 forks source link

AsyncLocal doesn't support multiple locals of same type #2

Closed ndrwrbgs closed 6 years ago

ndrwrbgs commented 6 years ago

May not be a problem in this particular implementation, but need to review here and other libraries that copied this code.

https://github.com/ndrwrbgs/OpenTracing-System.Diagnostics/blob/f1198071e0eb482783d1abffda519f263d846f4a/src/Library/ToOpenTracing/AsyncLocal.cs#L12

The static key for the call context will overlaps for any T's of the same type.