Replies: 5 comments 3 replies
-
|
If that is cross thread, it means mutiple segments. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
What you mean is that the self time consumption across threads and processes only calculates the duration of their own segments. In actual execution, asynchronous tasks may or may not require waiting. For monitoring applications, the expected self time consumption is the time their own program executes, not caused by asynchronous tasks or exit point calls to other systems.
…---Original---
From: "吴晟 Wu ***@***.***>
Date: Fri, Jan 23, 2026 15:48 PM
To: ***@***.***>;
Cc: ***@***.******@***.***>;
Subject: Re: [apache/skywalking] How to calculate the self time of a segment,specifically in the cases of cross-thread and cross-process scenarios(Discussion #13681)
If that is cross thread, it means mutiple segments.
All segments have their own duration already.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
-
|
Since the cost of modifying the agent is relatively high, can we consider the start and end time of the firstSpan in the segment minus the duration of all exitSpans as the current segment's own time consumption when calculating the time consumption
…---Original---
From: "吴晟 Wu ***@***.***>
Date: Fri, Jan 23, 2026 17:28 PM
To: ***@***.***>;
Cc: ***@***.******@***.***>;
Subject: Re: [apache/skywalking] How to calculate the self time of a segment,specifically in the cases of cross-thread and cross-process scenarios(Discussion #13681)
Generally, in default plugins, most async doesn't treat to be waited.
If you want to exclude waiting, you need to have span paired matching begin and end async.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
-
|
Yes, the requirement is to calculate the self time consumption of the segment, because in actual calling relationships, downstream abnormal time consumption usually affects all upstream time consumption, which interferes with fault demarcation to some extent. As I mentioned before, if we only subtract the duration of RPC's exitSpan from the duration of firstSpan. It can be regarded as the self consumption time of the current segment. At this point, there is no need to consider asynchronous scenarios anymore, as the asynchronous waiting time range must be within the time range of firstSpan, and the asynchronous parallel time range will be ignored.
…---Original---
From: "吴晟 Wu ***@***.***>
Date: Sun, Jan 25, 2026 02:19 AM
To: ***@***.***>;
Cc: ***@***.******@***.***>;
Subject: Re: [apache/skywalking] How to calculate the self time of a segment,specifically in the cases of cross-thread and cross-process scenarios(Discussion #13681)
Only RPC has exit spans. Async is only a local span to delegate as it's not exiting the current process.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
-
|
Thank you for your reply. We already have the answer
…---Original---
From: "吴晟 Wu ***@***.***>
Date: Sun, Jan 25, 2026 08:25 AM
To: ***@***.***>;
Cc: ***@***.******@***.***>;
Subject: Re: [apache/skywalking] How to calculate the self time of a segment,specifically in the cases of cross-thread and cross-process scenarios(Discussion #13681)
If that is good, what is your question actually? I am not following.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
How to calculate the self time of a segment, specifically in the cases of cross-thread and cross-process scenarios
Beta Was this translation helpful? Give feedback.
All reactions