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
The captureError function can take 3 types of arguments in the first position:
captureError
The latter is currently undocumented.
If captureError is passed an object instead of an error or a string we expect it to be in the format of { message: '...', params: [] }.
{ message: '...', params: [] }
Example usage:
agent.captureError({ message: 'Could not find user %s with id %d in the database', params: ['Peter', 42] })
This makes it possible for us to better group error messages that contain variable data like ID's or names.
The text was updated successfully, but these errors were encountered:
docs: add missing docs for special parameterized error object
18ae6ac
Fixes elastic#159
docs: add missing docs for special parameterized error object (#178)
340ec24
Fixes #159
watson
No branches or pull requests
The
captureError
function can take 3 types of arguments in the first position:The latter is currently undocumented.
If
captureError
is passed an object instead of an error or a string we expect it to be in the format of{ message: '...', params: [] }
.Example usage:
This makes it possible for us to better group error messages that contain variable data like ID's or names.
The text was updated successfully, but these errors were encountered: