Showing results for 
Show  only  | Search instead for 
Did you mean: 

Reading app state sizes

Dynatrace Participant
Dynatrace Participant

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? 


Dynatrace Advocate
Dynatrace Advocate

Hello @3ene ,

No, there is currently no way to read the current app state usage of the app. 


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.



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.

Great! Where do I find out what "names" are there to be matched? Thansk!

Featured Posts