supabase-community / postgrest-go

Isomorphic Go client for PostgREST. (Now Updating)
https://supabase.io
Apache License 2.0
170 stars 27 forks source link

X-Client-Info header #16

Closed awalias closed 2 years ago

awalias commented 3 years ago

we're rolling out a header similar to Stripe's App-Data in all of the client libs so issues can be debugged more easily between the client and the backend

the javascript libs are done already: https://github.com/supabase/supabase-js/pull/238

the format is: X-Client-Info: supabase-js/1.11.0

for client libs that wrap others (like how supabase-js wraps gotrue-js) we allow the wrapper lib to overwrite the wrapped lib's header (given that we can infer the gotrue-js version based on which supabase-js was used to make the call)

any help with rolling this out here would be incredible

bariqhibat commented 2 years ago

Hey @awalias, has this been resolved? If not, can I work on this?

awalias commented 2 years ago

I think it has not yet been resolved 👍

ideal string would be:

X-Client-Info: postgrest-go/

thanks!!