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

wrangler tail #5

Closed
4 tasks done
Tracked by #12
threepointone opened this issue Nov 15, 2021 · 2 comments
Closed
4 tasks done
Tracked by #12

wrangler tail #5

threepointone opened this issue Nov 15, 2021 · 2 comments
Assignees

Comments

@threepointone
Copy link
Contributor

threepointone commented Nov 15, 2021

This issue tracks the implementation of wrangler tail.

Usage

  • as before, you can run wrangler tail inside a project and it'll start showing live logs for the worker defined in that project.
  • additionally, you can pass a script name directly to it, like wrangler tail <name> and it'll tail the worker from your account with that name.
    • Consequently, you won't need to clone the worker's repo, install all dependencies, all just to tail the worker anymore. You should now be able to run npx wrangler tail <name> from anywhere.
  • in v2, we only log in the json format, and don't support all the filters yet. We will fix this soon to add pretty mode, and all the filter flags: --status, --header, --method, --sampling-rate, --search.
@threepointone threepointone mentioned this issue Nov 16, 2021
27 tasks
threepointone added a commit that referenced this issue Nov 16, 2021
:( We can't get an SLA from the team for free tunnels, and it's buggy as hell :( We can revisit this later, if we want to rebuild it from scratch with workers. Deleting the implementation for now. Also some fixes for package-lock.
@geelen
Copy link
Contributor

geelen commented Dec 21, 2021

Just to add one, I made fairly heavy use of the following query in the past:

wrangler1 tail | jq --compact-output '.event.request.url,.logs[].message[],.exceptions'

With wrangler1 being entirely config-driven (not interactive), this worked well:

image

I mean, it's not as good as actually presenting the log data in a really nice way. But something to think about. Maybe a --raw flag or even a --jq one?

@Electroid Electroid added this to the 2.0 milestone Jan 20, 2022
@Electroid Electroid removed this from the 2.0 milestone Jan 31, 2022
@petebacondarwin petebacondarwin added this to the Wrangler 2.0 milestone Feb 1, 2022
@petebacondarwin
Copy link
Contributor

Closing as the main task here have been completed!! 🚀

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

No branches or pull requests

5 participants