diff --git a/CHANGELOG.md b/CHANGELOG.md index 3661d86..e83bf62 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +# 1.1.4 - 19 Aug 2024 +- Negate isInitialized + # 1.1.3 - 19 Aug 2024 Bug fix: - Support bun build --minify-identifiers diff --git a/package.json b/package.json index 39716e0..c243112 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@elysiajs/opentelemetry", - "version": "1.1.3", + "version": "1.1.4", "license": "MIT", "scripts": { "dev": "bun run --watch example/index.ts", diff --git a/src/index.ts b/src/index.ts index fd6a20f..305ddcc 100644 --- a/src/index.ts +++ b/src/index.ts @@ -198,9 +198,7 @@ export const opentelemetry = ({ }: ElysiaOpenTelemetryOptions = {}) => { let tracer = trace.getTracer(serviceName) - const isInitialized = tracer instanceof ProxyTracer - - if (!isInitialized) { + if (tracer instanceof ProxyTracer) { if (!instrumentations) instrumentations = [getNodeAutoInstrumentations()]