Use Activity.SetStatus instead of setting status inside Tags #37103
Open
Description
[Enter feedback here]
https://learn.microsoft.com/en-us/dotnet/core/diagnostics/distributed-tracing-instrumentation-walkthroughs#optional-add-status
SetStatus is showing the approach to use special Tags to store status, but now that Activity has first class support for Status, it must be updated to show that approach instead.
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
- ID: 3f30f3b0-90cb-d2eb-ee08-4319ffcb7686
- Version Independent ID: dc4689df-b03a-e744-dbed-f23d8defcb6e
- Content: Add distributed tracing instrumentation - .NET
- Content Source: docs/core/diagnostics/distributed-tracing-instrumentation-walkthroughs.md
- Product: dotnet-fundamentals
- GitHub Login: @tommcdon
- Microsoft Alias: tommcdon