Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support SDK debug, specially for third-party internal features #57

Open
zoedsoupe opened this issue Jan 7, 2025 · 4 comments
Open

Support SDK debug, specially for third-party internal features #57

zoedsoupe opened this issue Jan 7, 2025 · 4 comments
Labels
enhancement New feature or request

Comments

@zoedsoupe
Copy link
Collaborator

Feature request

Is your feature request related to a problem? Please describe.

N/A

Describe the solution you'd like

supabase-js sdk have the auth.debug boolean flag to log internal steps from the auth client, what I'm proposing here is to add this flag globally for the client, to log internal steps like the Supabase.Fetcher that does a bunch of internal steps, parsing and so on.

Describe alternatives you've considered

just a proposal, I don't think it's blocking but can help debugging any possible error that arrives from these internal steps and don't raise any exception or clearly returns an error.

Additional context

while developing and implementing #54 I run into several minor issues like that, of course while developing the library these issues will be more common but somehow can be valuable for final users to track what the sdk in doing under the hoods.

@zoedsoupe zoedsoupe added the enhancement New feature or request label Jan 7, 2025
@zoedsoupe
Copy link
Collaborator Author

cc @grdsdev

@zoedsoupe
Copy link
Collaborator Author

cc @filipecabaco

@grdsdev
Copy link

grdsdev commented Jan 15, 2025

That's a nice addition, go for it.

@zoedsoupe
Copy link
Collaborator Author

nice! we can leverage the Logger built in module to control the level of the log, so we can emit different "debug" vela if logging and users can control it and also provide different backends for the logger, for example datadog, open telemetry or prometheus

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants