@merkl/api 0.10.148 → 0.10.150
Sign up to get free protection for your applications and to get access to all the features.
@@ -10,6 +10,7 @@ import { TokenController } from "./token";
|
|
10
10
|
import { ErrorHandler } from "../../plugins/error-handling.plugin";
|
11
11
|
import bigintToString from "../../utils/bigintToString";
|
12
12
|
import { opentelemetry } from "@elysiajs/opentelemetry";
|
13
|
+
import { getNodeAutoInstrumentations } from "@opentelemetry/auto-instrumentations-node";
|
13
14
|
import { OTLPTraceExporter } from "@opentelemetry/exporter-trace-otlp-http";
|
14
15
|
import { BatchSpanProcessor } from "@opentelemetry/sdk-trace-node";
|
15
16
|
import { PrismaInstrumentation } from "@prisma/instrumentation";
|
@@ -32,7 +33,7 @@ export const v4 = new Elysia({ tags: ["v4"], prefix: "/v4" })
|
|
32
33
|
},
|
33
34
|
})),
|
34
35
|
],
|
35
|
-
instrumentations: [new PrismaInstrumentation()],
|
36
|
+
instrumentations: [new PrismaInstrumentation(), getNodeAutoInstrumentations()],
|
36
37
|
})
|
37
38
|
: new Elysia() // not optimal
|
38
39
|
)
|