Comments (5)
Hi @evanlok
Apologies for the delay in response, and thanks for your patience.
In order for us to investigate this further, can you please confirm whether our understanding of what you are doing in the example is correct?
- You're running Sidekiq supporting 2 concurrent jobs
- You're enqueueing 10 jobs to run, passing in the reloaded
Foo
instance - The jobs are sleeping for 10 seconds, then raising a failure
- When the failure is raised, BugSnag serializes the argument, which is a
Foo
- Serializing the argument calls
to_s
on it - This makes further network requests, and doesnโt return the connection to the pool
Please elaborate on anything here that may not be exactly correct.
from bugsnag-ruby.
Yes, that is correct.
from bugsnag-ruby.
Hi @evanlok
Can you please elaborate on why you are making a database query in to_s
? We generally wouldn't recommend making a database call in such a way as to_s
is a standard method in Ruby used to cast the thing you're looking at to a string representation. You wouldn't really expect this to do anything other than represent the in-memory object.
from bugsnag-ruby.
The to_s
method was querying for related configuration to determine the string output. We removed the database call from the method to resolve the issue but it's possible this can happen again in the future. It was quite difficult to debug initially so if there's a way bugsnag can prevent or warn when this occurs it would be helpful.
from bugsnag-ruby.
Hi @evanlok
Thanks for your patience on this.
We now have a task on our backlog to discuss and explore our options here when priorities allow. I can't currently provide an ETA on when this could be looked at, but we will make sure to post any further updates on this thread regarding future discussions or developments on this.
from bugsnag-ruby.
Related Issues (20)
- Ability to suppress default pii user information sent to bugsnag HOT 6
- Bug: Do not serialize gigantic objects HOT 7
- Does there exists an offline bugsnag-server, perhaps a sister project? HOT 1
- Error Message: "Not delivering sessions due to an invalid api_key" needs to clarify it's coming from Bugsnag Gem HOT 1
- Library not usable on aws lambda (w/o docker) HOT 1
- [thread_queue] Uncaught exception not delivered when Bugsnag.notify was previously called. HOT 3
- Rails 7 Error Subscriber HOT 5
- `add_on_error` doesn't get called back for handled errors HOT 3
- Set warden scope on user data HOT 2
- Bugsnag does not report JSON bodies that are arrays HOT 4
- skip_bugsnag is not functioning HOT 1
- Allow access to Bugnsag Sidekiq exception report before notifying Bugsnag HOT 1
- [feature request] Can we support disable breadcrumb when `enabled_breadcrumb_types` config is empty? HOT 1
- Breadcrumb meta_data validation fails while using ActionMailer HOT 2
- Sidekiq exception handlers now take three arguments (DEPRECATION since sidekiq 7.1.5, will become error in 8) HOT 5
- SPA with ruby server project in subfolder and using capistrano option repo_tree HOT 5
- Bugsnag instrumentation causes URI: on redirect to badly formed (but working) url HOT 2
- Messages dropped because of a full thread queue HOT 6
- Rails `ActionController::RoutingError` Not Being Reported As Default HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bugsnag-ruby.