Skip to content

Commit 971259a

Browse files
authored
fix(docs): removing incorrect apm docs (#2793)
1 parent d8784d1 commit 971259a

File tree

1 file changed

+1
-19
lines changed
  • docs/reference/content/reference/management

1 file changed

+1
-19
lines changed

docs/reference/content/reference/management/apm.md

+1-19
Original file line numberDiff line numberDiff line change
@@ -22,25 +22,7 @@ The following code example hooks into all the available features
2222
of the APM API.
2323

2424
```js
25-
const listener = require('mongodb').instrument({
26-
operationIdGenerator: {
27-
operationId: 1,
28-
29-
next: function() {
30-
return this.operationId++;
31-
}
32-
},
33-
34-
timestampGenerator: {
35-
current: function() {
36-
return new Date().getTime();
37-
},
38-
39-
duration: function(start, end) {
40-
return end - start;
41-
}
42-
}
43-
}, function(err, instrumentations) {
25+
const listener = require('mongodb').instrument(function(err, instrumentations) {
4426
// Instrument the driver
4527
});
4628

0 commit comments

Comments
 (0)