dfinity / ic-hs

A haskell toolbox for the Internet Computer
Apache License 2.0
35 stars 6 forks source link

trim long blobs in json debug state #192

Closed mraszyk closed 1 year ago

mraszyk commented 1 year ago

The JSON debug state exposed at http://localhost:<port> is intended for manual inspection in a web browser and thus we should trim long blobs that slow down loading the JSON file in the web browser without facilitating human readability.

nomeata commented 1 year ago

Is anyone using this debug endpoint even? It contributes significantly to the build time, I believe (JSON instances). Maybe remove it?

mraszyk commented 1 year ago

Is anyone using this debug endpoint even? It contributes significantly to the build time, I believe (JSON instances). Maybe remove it?

We're exploring its potential for showing debug information about call contexts so I wouldn't drop it at this point.