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.

Add extra data to event or message

See original GitHub issue

With raven-python we could add extra param to captureMessage. Now with sentry-python capture_message does not accept extra param.

Can we add extra data to event or message ?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:13 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
EralpBcommented, Sep 25, 2020

thank you, I hated that I had the option to add some extra information to help me debug the warnings without writing any extra line of code. Forcing us to upgrade helped us to reap this benefit.

1reaction
danielcomptoncommented, Oct 25, 2018

If I want to set a custom error message that is more specific than the one on the caught exception, do I do so by setting scope.set_extra("message", "My custom message")?

Also, is there a way to provide raw format string style messages? https://docs.sentry.io/clientdev/interfaces/message/

Read more comments on GitHub >

github_iconTop Results From Across the Web

Is there any way of passing additional data via custom events?
Yes, you can use a MessageEvent or a CustomEvent . Example usage: //Listen for the event window.addEventListener("MyEventType", function(evt) ...
Read more >
Creating and triggering events - MDN Web Docs - Mozilla
This article demonstrates how to create and dispatch DOM events. ... To add more data to the event object, the CustomEvent interface exists ......
Read more >
Add custom data to events in Azure Event Hubs
This article shows you how to add custom data to events in Azure Event Hubs. ... event_data = EventData('Message with properties') ...
Read more >
[GA4] Modify and create events via the user interface
In the left navigation, click Admin. · In the Property column, click Events. · Click Modify Event. · If your property has more...
Read more >
Enrich Change Events with Extra Fields - Salesforce Developers
Change event messages include values for new and changed fields, but sometimes unchanged field values are needed for processing or replicating data.
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