From f3c8d0f018432b99f4e75dfd49feb4a6077c3ad8 Mon Sep 17 00:00:00 2001 From: rwkarg Date: Thu, 28 Mar 2019 13:54:33 -0700 Subject: [PATCH] OpenTracing uses AsyncLocal context storage https://github.com/opentracing/opentracing-csharp AsyncLocal storage allows tracing to follow across async/await and other async boundaries. --- csharp/src/lesson02/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/csharp/src/lesson02/README.md b/csharp/src/lesson02/README.md index fb64419..00d5eaf 100644 --- a/csharp/src/lesson02/README.md +++ b/csharp/src/lesson02/README.md @@ -151,7 +151,7 @@ You may have noticed a few unpleasant side effects of our recent changes * we had to pass the Span object as the first argument to each function * we also had to write somewhat verbose try/finally code to finish the spans -OpenTracing API for C# provides a better way. Using thread-locals and the notion of an "active span", +OpenTracing API for C# provides a better way. Using context based storage (via AsyncLocal) and the notion of an "active span", we can avoid passing the span through our code and just access it via `_tracer`. ```csharp