diff --git a/CHANGELOG.md b/CHANGELOG.md index 1ef5a4e..c9f41f2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# 1.1.7 - 31 Oct 2024 +Change: +- remove auto-node-instrumenetation by default + # 1.1.6 - 10 Oct 2024 Improvement: - setTimeout reference hack to prevent gc diff --git a/bun.lockb b/bun.lockb index f921599..ed01544 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index bd58ba5..fed090e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@elysiajs/opentelemetry", - "version": "1.1.6", + "version": "1.1.7", "license": "MIT", "scripts": { "dev": "bun run --watch example/index.ts", @@ -36,8 +36,8 @@ ], "dependencies": { "@opentelemetry/api": "^1.9.0", - "@opentelemetry/auto-instrumentations-node": "^0.48.0", - "@opentelemetry/sdk-node": "^0.52.1" + "@opentelemetry/instrumentation": "^0.54.0", + "@opentelemetry/sdk-node": "^0.54.0" }, "devDependencies": { "@axiomhq/js": "^1.0.0-rc.3", diff --git a/src/index.ts b/src/index.ts index 315315a..aa1bc0d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -13,7 +13,7 @@ import { } from '@opentelemetry/api' import { NodeSDK } from '@opentelemetry/sdk-node' -import { getNodeAutoInstrumentations } from '@opentelemetry/auto-instrumentations-node' +import { registerInstrumentations } from '@opentelemetry/instrumentation' // @ts-ignore bun only const headerHasToJSON = typeof new Headers().toJSON === 'function' @@ -217,9 +217,6 @@ export const opentelemetry = ({ let tracer = trace.getTracer(serviceName) if (tracer instanceof ProxyTracer) { - if (!instrumentations) - instrumentations = [getNodeAutoInstrumentations()] - const sdk = new NodeSDK({ ...options, serviceName,