question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Pre-filtering to prevent: too much traffic for live tailing

See original GitHub issue

💡 Feature request

Overview and problem statement

We are seeing exceptions in production that we are struggling to diagnose. We have followed all of the debugging tips here, including wrapping our handler in a try/catch and firing off error logs but I still have no visibility into the errors which suggests to me the exceptions are being thrown outside of the handler. Unfortunately, we don’t know how to replicate these errors and we’re not seeing them in our non-prod environments.

What I would like to do now is pull logs from production, but when trying to use wrangler tail I get the following error.

$ npx wrangler tail --env master | grep "exception" > exceptions.txt
🦚  Setting up log streaming from Worker script "master". Using ports 8080 and 8081.
⠲   This may take a few seconds...
Error: ⚠️  Code 10057: workers.api.error.too_much_traffic_for_live_tailing
🕵️  See documentation

What I’d like to propose is a couple of improvements:

  1. Document whether there is any mitigation option available folks who encounter this issue
  2. Provide some way to pre-filter logs before they enter the tail pipe

I think many services would seek to provide a sampled tail when traffic is too high, and this might be a great solution, but only if it removed duplicate log entries. If I lost unique (and valuable) exception logs as a result of sampling then that would be equally frustrating.

I understand this request is probably unreasonably difficult, but as it stands today I don’t really have any other options.

Basic example

Provide a --sample flag to indicate that we’re happy to only receive a sample of the logs in the given environment.

$ npx wrangler tail --sample

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:6
  • Comments:22 (4 by maintainers)

github_iconTop GitHub Comments

11reactions
bjesuscommented, Oct 19, 2020

has there been any progress on this? we are currently completely unable to tail any of our production workers. Wrangler just shouts Error: ⚠️ Code 10057: workers.api.error.too_much_traffic_for_live_tailing 🕵️ See documentation. As much as the emojis are nice, which documentation exactly?

2reactions
nilslicecommented, Jul 21, 2021

We are actively working on a significant improvement to tailing worker logs - we’ll update this thread once there is more to share soon.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Pre-filtering to prevent: too much traffic for live tailing #1317
What I would like to do now is pull logs from production, but when trying to use wrangler tail I get the following...
Read more >
To pre-filter, or not to pre-filter, that is the query - SAGE Journals
This study used a nonexperimental design and quantitative methods to analyze users' revealed preferences for query type in twenty-four academic ...
Read more >
Live Tailing Parsed Logs in Logz.io
You can use filtering, searching, highlighting, scrolling and clearing on your parsed data just as you would use these functions on unparsed data....
Read more >
Untitled
#Dr Dziewczynka z ringu halloween, 20-30 mmhg compression thigh high, ... Battaglia shoes outlet, Saltatorial animals, Bbc 5 live radio channel, Verrucktes.
Read more >
GUIDELINES TO THE USE OF WILD BIRDS IN RESEARCH
protect bird populations, though the permit regulations in the United States allude very briefly to humane conditions for live wildlife possessed under a ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found