We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4506086 commit c603449Copy full SHA for c603449
docs/reference/agent-api.md
@@ -215,12 +215,15 @@ Use this method to get the current active transaction. If there is no active tra
215
## `apm.captureError()` [capture-error]
216
217
```js
218
-apm.captureError(error)
+apm.captureError(error, options)
219
```
220
221
Arguments:
222
223
* `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.
227
228
Use this method to manually send an error to APM Server:
229
0 commit comments