-
Notifications
You must be signed in to change notification settings - Fork 227
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: ensure correct run context for '@elastic/elasticsearch' instrume…
…ntation This is a re-write of the @elastic/elasticsearch instrumentation that stops using the ES client observability events https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/observability.html and switches to patching Transport#request() instead. This is necessary to be able to bind that `request()` invocation to the RunContext for the Span we've created; without using `apm.startSpan(...)`, which bleeds the RunContext out to user code. (Patching Transport#request() is what the legacy 'elasticsearch' instrumentation is also doing.) Refs: #2430
- Loading branch information
Showing
9 changed files
with
229 additions
and
193 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.