forked from drizzle-team/drizzle-orm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add OpenTelemetry integration for Postgres
- Loading branch information
1 parent
1f1c16b
commit 28c28bc
Showing
24 changed files
with
456 additions
and
166 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,4 +51,6 @@ export const external = [ | |
'postgres', | ||
'sqlite3', | ||
'bun:sqlite', | ||
'@opentelemetry/api', | ||
'@vercel/postgres', | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import json from '@rollup/plugin-json'; | ||
import typescript from '@rollup/plugin-typescript'; | ||
import { defineConfig } from 'rollup'; | ||
import { entries, external } from './rollup.common'; | ||
|
||
export default defineConfig([ | ||
{ | ||
input: entries.reduce<Record<string, string>>((acc, entry) => { | ||
const from = 'src/' + entry + '.ts'; | ||
const to = entry; | ||
acc[to] = from; | ||
return acc; | ||
}, {}), | ||
output: { | ||
format: 'esm', | ||
dir: 'dist.new', | ||
entryFileNames: '[name].mjs', | ||
chunkFileNames: '[name]-[hash].mjs', | ||
sourcemap: true, | ||
}, | ||
external, | ||
plugins: [ | ||
json({ | ||
preferConst: true, | ||
}), | ||
typescript({ | ||
tsconfig: 'tsconfig.esm.json', | ||
outputToFilesystem: true, | ||
}), | ||
], | ||
}, | ||
]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.