elastic / elastic/apm-agent-nodejs

`addPatch` with handler path is poorly defined

Open
#990 1 comment 1 reaction 0 assignees View on GitHub
agent-nodejs docs
Dominant language
JavaScript
Stars
594
Forks
244
Avg merge
1d 8h
Merged PRs (30d)
16

Description

The [`addPatch` documentation](https://www.elastic.co/guide/en/apm/agent/nodejs/current/agent-api.html#apm-add-patch) says that the `handler` argument must be:
>handler - function or string Must be a patch function or a path to a module exporting a patch function

But exactly what "a path to a module exporting a patch function" means is ambiguous as it's unclear what a relative module path would be relative to.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.