core/instrumentation.ts
SKINMAKER 51aa8e39e7
feat: 강제사항 명시 UX 개선 (#689)
* feat: add none to enforcement entries

* chore: clarify join enforced description

* feat: add constant for enforcements

* fix: do not filter none

* fix: do not show message when none is set

* style: fix lint

* chore: explicit next of dd-trace

* chore: improve wordings for join enforcements

* chore: clarify join enforced
2025-08-20 21:43:17 +09:00

13 lines
312 B
TypeScript

export async function register() {
if (process.env.NEXT_RUNTIME === 'nodejs') {
const { tracer } = await import('dd-trace')
const packageJson = await import('package.json')
tracer.init({
service: 'koreanbots',
version: packageJson.version,
env: process.env.DD_ENV,
})
tracer.use('next')
}
}