Skip to content

Commit

Permalink
Merge pull request #664 from drizzle-team/disable-otel
Browse files Browse the repository at this point in the history
  • Loading branch information
dankochetov committed May 30, 2023
2 parents 7a18dde + 6c192f8 commit 95e2517
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions changelogs/drizzle-orm/0.26.3.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Disabled OTEL integration due to the top-level await issues
2 changes: 1 addition & 1 deletion drizzle-orm/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "drizzle-orm",
"version": "0.26.2",
"version": "0.26.3",
"description": "Drizzle ORM package for SQL databases",
"type": "module",
"scripts": {
Expand Down
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 95e2517

Please sign in to comment.