You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[HttpGet]publicasync Task Test(){
Task.Factory.StartNew(async()=>{while(true){// The trace data generated by this request will use the `traceId` generated by the external threadawaitnew HttpClient().GetAsync("http://localhost:5002/api/delay/1000");await Task.Delay(2000);}}, TaskCreationOptions.LongRunning);awaitnew HttpClient().GetAsync("http://localhost:5002/api/delay/1000");}
Similar to the above code, create a new thread with an infinite loop in the thread of the existing tracing context, and the trace data in the new thread will be infinitely appended to the trace of the external thread.
Is there any way to generate a independent trace for the new thread?
In my company, there are nearly 700,000 segments with the same trace id in the three-day segments data.
Requirement or improvement
Please describe about your requirements or improvement suggestions.
The text was updated successfully, but these errors were encountered:
We suspend the previous PR about manually cleaning current context.
I want to discuss this officially about how we treat this case?
Manually close seems misleading.
Does .net want newTracing API(or similar)? Or any suggestion?
Notice, we don't have this in any other agents AFAIK.
I see java has CallableWrapper that also is a hardcode way. If you mean just don't hardcode directly use the tracing context, then I can implement it in a way similar to CallableWrapper. But the two methods in the PR are still needed, just not used in user code.
Please answer these questions before submitting your issue.
Question
Bug
Which version of SkyWalking, OS and .NET Runtime?
Which company or project?
What happen?
If possible, provide a way for reproducing the error. e.g. demo application, component version.
Can manual clear current context or make the context relation weakly. #544
Similar to the above code, create a new thread with an infinite loop in the thread of the existing tracing context, and the trace data in the new thread will be infinitely appended to the trace of the external thread.
Is there any way to generate a independent trace for the new thread?
In my company, there are nearly 700,000 segments with the same trace id in the three-day segments data.
Requirement or improvement
The text was updated successfully, but these errors were encountered: