We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I've read documentation cover-to-cover and I am still clueless how to set contexts using captureException.
contexts
captureException
Looking at the source code, it looks like it should be as simple as:
captureException(new Error('baz'), { contexts: { foo: 'bar', }, });
But the foo=bar values do not appear anywhere in the UI.
foo=bar
It is either an issue with documentation/ SDK or UI.
The text was updated successfully, but these errors were encountered:
Okay, so after posting this, I realised that maybe it expects a nested object for whatever reason. So I tried:
captureException(new Error('baz'), { contexts: { foo: { bar: { taz: 'qux', }, }, }, });
This indeed works:
Lack of documentation.
Sorry, something went wrong.
At the very least, I would correct types to say:
contexts: { [key: string]: { [key: string]: any } };
No branches or pull requests
I've read documentation cover-to-cover and I am still clueless how to set
contexts
usingcaptureException
.Looking at the source code, it looks like it should be as simple as:
But the
foo=bar
values do not appear anywhere in the UI.It is either an issue with documentation/ SDK or UI.
The text was updated successfully, but these errors were encountered: