Comments (5)
Assigning to @getsentry/support for routing ⏲️
from sentry-docs.
Routing to @getsentry/product-owners-sdks-web-backend for triage ⏲️
from sentry-docs.
hey @amo13 i'll add some clarification to the docs but the quick answer for you is that a before_action
should work.
from sentry-docs.
Thank you very much. This unfortunately does not answer my question just yet:
In my rails project, I define exception classes and use raise MyError, "Some text telling what happened"
in the code (not only controller, also model, modules, jobs, etc.). What I'd like to achieve is to submit additional context from there, where I raise MyError
, maybe to catch arguments given to the method raising MyError, or to add the state of some linked object.
I was hoping for something like
def method_anywhere_in_project
...
raise MyError.new(context1: "something", context2: 42)
...
end
...and maybe magically when sentry catches that error, it would submit context1 and context2 as part of the Exception.
from sentry-docs.
You can't add those to the exception instance but you can do the following even in your model method and when sentry captures that exception it will pick up this data. Think of the scope as state that is flowing along with your request logic and it gets picked up when the event is finally sent to sentry.
Sentry.configure_scope do |scope|
scope.set_context(
'character',
{
name: 'Mighty Fighter',
age: 19,
attack_type: 'melee'
}
)
end
from sentry-docs.
Related Issues (20)
- revamp elixir docs
- Wrong order of tabs in code blocks
- Add notes about Replay inside of Feedback docs HOT 2
- [Page Footer] Add Contact Support and Feedback CTAs HOT 9
- Add an opengraph image to docs repo HOT 3
- Wrong tab selector label per command on install page for react sdk HOT 3
- Broken links on sdk docs
- Add supported units to metrics documentation. HOT 10
- Add a Replay troubleshooting entry for Canvas
- [Session Replay] Document request size limits for req bodies HOT 1
- Replay pricing table can be amended for clarity HOT 3
- Web Vitals Concepts page not showing up HOT 3
- Unclear what access token permissions are required for uploading source maps HOT 2
- Add Replay to Web BE SDK Docs HOT 2
- Documentation says send-event can use a json-formatted file, but does not specify what format it should be in HOT 2
- Document that JS source maps are not required to be shipped in production HOT 1
- Update backend tutorial example app HOT 2
- CODEOWNERS file section not handled HOT 1
- Distrubuted Tracing -> Top Level: Tracing
- User-Feedback Integration outdated HOT 1
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 sentry-docs.