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.

Ho can i send custom data with client.captureException()?

See original GitHub issue
CREATE OR REPLACE FUNCTION public.ravenlog(a integer)
    RETURNS integer
    LANGUAGE 'plpythonu'
    COST 100.0
    VOLATILE 
   AS 
 $function$
from raven import Client
client = Client('__DSN__')
try:
 1 / 0
except ZeroDivisionError as err:
 client.captureException()
return a
$function$;

I want to add custom data with client.captureException() like some json data . How can i do so ? Thanks

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ashwoodscommented, Sep 28, 2017

You can pass extra to client.captureException with a dict for example.

0reactions
awesomehimanshucommented, Oct 3, 2017

thanks man.that completely solve my problem

Read more comments on GitHub >

github_iconTop Results From Across the Web

Usage | Sentry Documentation
captureException (e, function(sendErr, eventId) { // This callback fires once the report has been sent to Sentry if (sendErr) { console.error("Failed to send...
Read more >
dart - Sentry does not upload hints with `captureException ...
Hint is used to process the event. It doesn't get went to sentry. You can add data directly to the event. · 2....
Read more >
How to use the raven.captureException function in raven - Snyk
To help you get started, we've selected a few raven.captureException examples, based on popular ways it is used in public projects.
Read more >
JavaScript - Docs - Sentry Documentation
captureException (new Error("Something broke")); ... Sentry will try its best to accommodate the data you send it, ... Filter Events & Custom Logic....
Read more >
Raven Documentation
is submitted to Sentry that additional data will be passed along. ... client.captureException(). 5.1.2 Reporting an Event.
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