Skip to content

Conversation

nyannyacha
Copy link
Contributor

What kind of change does this PR introduce?

Enhancement

Description

Introduces tracing crate to improve the edge runtime debugging experience.

In this PR, I'm not trying to apply tracing to all of the codebase, just the sb_module_loader crate. (There's nothing special about this 😅)

Changes

  • cli: Changed the behavior of the -v --verbose cli flag in cli/tracing feature flag
    When this feature flag is enabled and -v or --verbose flag is set, detailed tracing span events are output to the console.

    With -v or --verbose flag

    ...
    2024-06-24T03:07:11.447652Z DEBUG ThreadId(04) load{specifier="https://deno.land/std/http/status.ts"}: sb_module_loader::standalone::standalone_module_loader: new
    2024-06-24T03:07:11.447670Z DEBUG ThreadId(04) load{specifier="https://deno.land/std/http/status.ts"}: sb_module_loader::standalone::standalone_module_loader: enter
    2024-06-24T03:07:11.447727Z DEBUG ThreadId(04) load{specifier="https://deno.land/std/http/status.ts"}: sb_module_loader::standalone::standalone_module_loader: exit
    2024-06-24T03:07:11.447744Z DEBUG ThreadId(04) load{specifier="https://deno.land/std/http/status.ts"}: sb_module_loader::standalone::standalone_module_loader: close time.busy=57.0µs time.idle=35.7µs
    ...

@nyannyacha nyannyacha requested a review from laktek June 24, 2024 04:12
@nyannyacha nyannyacha merged commit 853c9d8 into supabase:main Jun 24, 2024
@nyannyacha nyannyacha deleted the chore-tracing branch June 24, 2024 06:03
Copy link

🎉 This PR is included in version 1.54.7 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

2 participants