Question: How to store Activity.Id before start it? #2213
Labels
area-Diagnostics-coreclr
question
Answer questions and provide assistance, not an issue with source code or documentation.
tracking
This issue is tracking the completion of other related issues.
Milestone
Context:
I have a special requirement to store "dependencyActivity.id" in a transaction, see a line of code attached below:
await SaveOutgoingEventAsync(String.Empty);
I am currently storing an empty string as a temp version of dependencyActivity.id, and update it to the actual value of dependencyActivity.Id after I start the dependencyActivity. Use this way to pass down the parent and child relationship to the next external process, dependencyActivity.Id as my downstream service's operationParentId.
Question:
1: What is the best practice to store dependent id before I start and stop telemetry operation?
Code:
The text was updated successfully, but these errors were encountered: