EnsembleUI / ensemble

Build native apps 20x faster than Flutter, RN or any other tech
https://ensembleui.com/
BSD 3-Clause "New" or "Revised" License
111 stars 14 forks source link

allow passing additional dynamic headers to all TIN api calls #1194

Open muzahmed opened 5 months ago

muzahmed commented 5 months ago

Is your feature request related to a problem? Please describe. Yes - when we have multiple users hitting TIN's server via the app, its impossible to distinguish their calls in our logs

via the extension when we make our API calls, we supply a few headers that we create a composite logging key, and we can follow an entire request through the logs

Describe the solution you'd like if possible share the expected EDL Allow for us to set headers (some static, some dynamic) before the invokeAPI call

Describe alternatives you've considered

Additional context could be screen shot, discord conversation, figma file here, you can see there are 2 users, and one of the users made multiple API calls and this allows us to trace either a request or a user's path

image
kmahmood74 commented 5 months ago

you can set as many headers as you like on API calls. Dynamic or statically typed in EDL

muzahmed commented 5 months ago

oh -- i thought @vusters mentioned this wasnt supported? how can i do this?

kmahmood74 commented 5 months ago

oh -- i thought @vusters mentioned this wasnt supported? how can i do this?

@muzahmed I was assuming that the name of the header is fixed and it's value is dynamic. I am not able to figure out from the screen shot. Is this the case or the name of the header is dynamic as well?