Skip to content

Commit c603449

Browse files
committed
chore: add doc
1 parent 4506086 commit c603449

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/reference/agent-api.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,12 +215,15 @@ Use this method to get the current active transaction. If there is no active tra
215215
## `apm.captureError()` [capture-error]
216216

217217
```js
218-
apm.captureError(error)
218+
apm.captureError(error, options)
219219
```
220220

221221
Arguments:
222222

223223
* `error` - An instance of `Error`.
224+
* `options` - The following options are supported:
225+
226+
* `labels` - Add additional context with labels, these labels will be added to the error along with the labels from the current transaction.
224227

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

0 commit comments

Comments
 (0)