question

広志 北. avatar image
広志 北. asked ·

how much time is needed for onesdk_shutdown to pass data to oneagent

Hi there,

For our prospect which has package softwares in C, we are testing oneagent SDK to capture transactions.

The application consists of a parent and child processes as show below.


Due to shutdown timing, sometimes we failed to completely capture transactions(purepaths).

The warning message was as below:

----------------------------------------------------------

Some data could not be collected or transmitted. This is most likely due to a resource congestion on network, host or process level in your monitored environment (Diagnostic codes: C1, A5)

----------------------------------------------------------

The failure rate decreases when we set sleep() before onesdk_shutdown().


Question:

Is there any best practice to embed oneagent SDK into this type of environment?

We want to know how much time needed to pass collected data to oneagent.


I guess it depends on the size of data collected, so just rough estimated time is sufficient(a few seconds, 10 seconds...or others).



Best regards,

Hiroshi Kitahara

oneagent sdk
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

1 Answer

Wolfgang Z. avatar image
Wolfgang Z. answered ·

OK. Unfortunately, as far as I know the exact time to wait cannot be easily estimated. The agent does send all pending PurePaths to the server in onesdk_shutdown but the problem is that some Path data (like any string values) are only sent to Dynatrace when a server asks the agent for it, which it does when it processes the PurePath that contains references to them. Thus the wait time could depend on the total cluster load, among other things.

Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.