We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d928359 commit 6e88307Copy full SHA for 6e88307
docs/integrations/opentelemetry.md
@@ -91,16 +91,12 @@ To achieve this in Bun, we can
91
Let's create a new file in `src/instrumentation.ts`
92
93
```ts [src/instrumentation.ts]
94
-import { Elysia } from 'elysia'
95
-
96
import { opentelemetry } from '@elysiajs/opentelemetry'
97
import { PgInstrumentation } from '@opentelemetry/instrumentation-pg'
98
99
-export const instrumentation = new Elysia().use(
100
- opentelemetry({
101
- instrumentations: [new PgInstrumentation()]
102
- })
103
-)
+export const instrumentation = opentelemetry({
+ instrumentations: [new PgInstrumentation()]
+})
104
```
105
106
Then we can apply this `instrumentaiton` plugin into our main instance in `src/index.ts`
0 commit comments