pinpoint-node-agent icon indicating copy to clipboard operation
pinpoint-node-agent copied to clipboard

Nested async call Tree is not fully exposed

Open rornfdlek opened this issue 11 months ago • 2 comments

Hello, Would it be possible to support a call tree for nested async calls as shown below? (aysnc call in async call) MicrosoftTeams-image

Currently the call tree is not fully exposed but just showing first async call only like below capture. MicrosoftTeams-image (1)

When testing with the latest version, 0.9.0 agent, it seems that this feature is not supported. (envionment1 : nextjs + trpc module, node 18.18.2) (envionment2 : nextjs + axios module, node 16.20.0)

Is it possible to develop and support this feature in the future? I would appreciate your response.

Thank you.

rornfdlek avatar Mar 18 '24 01:03 rornfdlek

@rornfdlek When the NodeJS runtime run with await aync function , The NodeJS runtimes return a promise value of parent function. and then runs other async function.

The case you shared is one that I have not tested. I'll try to validate it in v1.0 and improve it so that it can be traced properly if it is traceable.

Thank you for your excellent task

feelform avatar Mar 20 '24 08:03 feelform

Hello, thank you for your kind response. Could you please let me know approximately when v1.0 will be released? I'd like to prepare for it and follow up as soon as possible upon confirmation of the schedule. Thank you for your understanding.

rornfdlek avatar Mar 20 '24 08:03 rornfdlek