We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8784d1 commit 971259aCopy full SHA for 971259a
docs/reference/content/reference/management/apm.md
@@ -22,25 +22,7 @@ The following code example hooks into all the available features
22
of the APM API.
23
24
```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) {
+const listener = require('mongodb').instrument(function(err, instrumentations) {
44
// Instrument the driver
45
});
46
0 commit comments