16 Jan 2023 09:09 AM - last edited on 02 May 2023 02:30 PM by educampver
According to the documentation, the maximum storage size for user states is 32KB, and for app states is 50MB. Is there a way to read the current app state usage of my app?
Solved! Go to Solution.
16 Jan 2023 03:24 PM
Hello @3ene ,
No, there is currently no way to read the current app state usage of the app.
21 Apr 2023 09:02 AM
Thansk!
I would like to jump in to ask a follow up question: when reading the SDK's signature, I see
stateClient.setAppState(config): Promise<void>
Does it mean that the SDK will throw an error in this case?
If so, I would love to have a typed error for this specific case.
Thanks!
21 Apr 2023 01:58 PM
Hi David, short answer, yes, it may throw an error. Unfortunately, there's no way to specify what type of errors a function might throw in TypeScript. However, Dynatrace SDKs provide utils functions for error handling. You can see how to use them in this post about handling errors in the query client. It's not the same SDK, but it's the same principle.
24 Apr 2023 03:12 PM
Great! Where do I find out what "names" are there to be matched? Thansk!