Skip to content

Commit

Permalink
fix(docs): removing incorrect apm docs (#2793)
Browse files Browse the repository at this point in the history
  • Loading branch information
durran authored Apr 29, 2021
1 parent d8784d1 commit 971259a
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions docs/reference/content/reference/management/apm.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,25 +22,7 @@ The following code example hooks into all the available features
of the APM API.

```js
const listener = require('mongodb').instrument({
operationIdGenerator: {
operationId: 1,

next: function() {
return this.operationId++;
}
},

timestampGenerator: {
current: function() {
return new Date().getTime();
},

duration: function(start, end) {
return end - start;
}
}
}, function(err, instrumentations) {
const listener = require('mongodb').instrument(function(err, instrumentations) {
// Instrument the driver
});

Expand Down

0 comments on commit 971259a

Please sign in to comment.