File tree 1 file changed +3
-4
lines changed
plugins/node/opentelemetry-instrumentation-knex
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ npm install --save @opentelemetry/instrumentation-knex
22
22
## Usage
23
23
24
24
``` js
25
- const { KnexInstrumentation , KnexInstrumentationConfig } = require (' @opentelemetry/instrumentation-knex' );
25
+ const { KnexInstrumentation } = require (' @opentelemetry/instrumentation-knex' );
26
26
const { ConsoleSpanExporter , SimpleSpanProcessor } = require (' @opentelemetry/sdk-trace-base' );
27
27
const { NodeTracerProvider } = require (' @opentelemetry/sdk-trace-node' );
28
28
const { registerInstrumentations } = require (' @opentelemetry/instrumentation' );
@@ -34,11 +34,10 @@ provider.register();
34
34
35
35
registerInstrumentations ({
36
36
instrumentations: [
37
- new KnexInstrumentation (
38
- new KnexInstrumentationConfig ({
37
+ new KnexInstrumentation ({
39
38
maxQueryLength: 100 ,
40
39
})
41
- ) ],
40
+ ],
42
41
tracerProvider: provider,
43
42
});
44
43
```
You can’t perform that action at this time.
0 commit comments