Skip to content

Commit

Permalink
Disable OTEL integration
Browse files Browse the repository at this point in the history
It was implemented using a top-level await,
that is not supported in some bundlers by default
  • Loading branch information
dankochetov committed May 30, 2023
1 parent 7a18dde commit 5279a7b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions drizzle-orm/src/tracing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ import { npmVersion } from '~/version';

let otel: typeof import('@opentelemetry/api') | undefined;
let rawTracer: Tracer | undefined;
try {
otel = await import('@opentelemetry/api');
} catch (err: any) {
if (err.code !== 'MODULE_NOT_FOUND' && err.code !== 'ERR_MODULE_NOT_FOUND') {
throw err;
}
}
// try {
// otel = await import('@opentelemetry/api');
// } catch (err: any) {
// if (err.code !== 'MODULE_NOT_FOUND' && err.code !== 'ERR_MODULE_NOT_FOUND') {
// throw err;
// }
// }

type SpanName =
| 'drizzle.operation'
Expand Down

0 comments on commit 5279a7b

Please sign in to comment.