Skip to content

Commit

Permalink
chore(docs): document apm.captureError
Browse files Browse the repository at this point in the history
  • Loading branch information
hmdhk committed Aug 8, 2018
1 parent eebf636 commit 74fb71d
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions docs/api.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,26 @@ Arguments:

Use this method to set the name of the `page-load` transaction that is sent automatically on page load event.

[float]
[[capture-error]]
==== `apm.captureError()`

[source,js]
----
apm.captureError(error)
----

Arguments:

* `error` - An instance of `Error`.

Use this method to manually send an error to APM Server:

[source,js]
----
apm.captureError(new Error('<error-message>'))
----


[float]
[[transaction-api]]
Expand Down

0 comments on commit 74fb71d

Please sign in to comment.