GleapSDK / JavaScript-SDK

Gleap helps developers build the best software faster. It is your affordable in-app bug reporting tool for apps, websites and industrial applications.
MIT License
5 stars 1 forks source link

Filtering network logs issue #41

Open AlisaStefan opened 3 weeks ago

AlisaStefan commented 3 weeks ago

Hello,

I need to filter from the network logs some nested keys, and reading the documentation it looks like I can do that by usingGleap.setNetworkLogPropsToIgnore(["api-key", "user.password", "..."]).

The actual behaviour is that the nested keys are not removed. It seems like only top level keys are filtered.

We are using Graphql and our requests payload are in a format of

"variables": {  "input": {
"key1": "value"  ,
"key2": "value"
}}

Trying to filter only key2 won't work.

boehlerlukas commented 3 weeks ago

Hey @AlisaStefan thanks for opening this issue. We will happily look into it and get back to you as soon as possible.

One thing to try in the meantime would be to add variables.input.key2.

Best, Lukas

AlisaStefan commented 3 weeks ago

@boehlerlukas I already tried that and the key is not removed