dotnet / dotnet/docs

Documentation does not state how to create long running spans

Open
#41,429 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

### Type of issue

Missing information

### Description

The documentation does not state any possibility to start long-running `Activity` for a (very) long-running, asynchronous task. Example: An API starts an operation / distributed trace, but this operation requires user feedback. I.e. a mail is sent to a user, and the user - at a later time - clicks on a link. This link comes back to the API to finish the activity.

How can the API start the Activity, but not end it when the initial API call is finished and the Activity instance is disposed? Because the actual Activity (approval process) that is still running / waiting. What does the code need to do, to recreate the activity object for the very same activity when the user clicked the link, to `.Stop()` the actual activity then?

### Page URL

https://learn.microsoft.com/en-us/dotnet/core/diagnostics/distributed-tracing-concepts

### Content source URL

https://github.com/dotnet/docs/blob/main/docs/core/diagnostics/distributed-tracing-concepts.md

### Document Version Independent Id

f3c7815e-7bd4-19ef-72c8-0a12dd2622c6

### Article author

@tommcdon

### Metadata

* ID: f172877e-feb4-cd62-3179-9335db8d70bd
* Service: **dotnet-fundamentals**

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.