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.

Clarify "passing extra data"

See original GitHub issue

According to the docs,

captureException, context, wrap, and captureMessage functions all allow passing additional data to be tagged onto the error, such as tags.

However, I don’t think this means arbitrary data. For example, you can’t do this:

Raven.captureMessage('Hello world', {planet: {name: 'Earth'}});

It would be nice if the docs were more clear on what additional data is allowed.

Issue Analytics

  • State:closed
  • Created 10 years ago
  • Reactions:2
  • Comments:17 (7 by maintainers)

github_iconTop GitHub Comments

10reactions
machadogjcommented, Apr 14, 2017

@mattrobenolt does this work in the same way for captureException? and btw, I think it would be better if in the docs you specify something like:

Raven.captureException(e, {extra: { foo: { bar: "baz" }}})
5reactions
mattrobenoltcommented, Dec 10, 2013

Ah, I’ll clarify in documentation. You can actually pass arbitrary information like that through extra.

Raven.captureMessage('Hello world', {extra: {planet: {name: 'Earth'}}})

And you get this inside Sentry:

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to pass extra variables to an Ansible playbook - Red Hat
This can be done via the ability to pass extra variables to an Ansible playbook. This feature is available when using the Ansible...
Read more >
How do I pass an extra parameter to the callback function in ...
Make startsWith accept the word to compare against and return a function which will then be used as filter/callback function:
Read more >
Passing data between Activities using Intent in Android
In this tutorial, we will learn how to use Intent and then we will pass the data using Intent from one activity to...
Read more >
Function pass by value vs. pass by reference
By definition, pass by value means you are making a copy in memory of the actual parameter's value that is passed in, a...
Read more >
How to Pass Variables to Ansible Playbook in command line?
Let me clarify that this is specific for variables, there is another way to look for environment variables The command line parameter is...
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