dotnet / dotnet/docs

Use Activity.SetStatus instead of setting status inside Tags

Open
#37,103 0 comments 0 reactions 0 assignees View on GitHub
:watch: Not Triaged dotnet-fundamentals/svc
Dominant language
No language data
Stars
4.8k
Forks
6.1k
Avg merge
19h 10m
Merged PRs (30d)
268

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](https://learn.microsoft.com/en-us/dotnet/core/diagnostics/distributed-tracing-instrumentation-walkthroughs#optional-add-status)
* Content Source: [docs/core/diagnostics/distributed-tracing-instrumentation-walkthroughs.md](https://github.com/dotnet/docs/blob/main/docs/core/diagnostics/distributed-tracing-instrumentation-walkthroughs.md)
* Product: **dotnet-fundamentals**
* GitHub Login: @tommcdon
* Microsoft Alias: **tommcdon**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.