From 70c9606ed7a89c9e054986d8b506f7771bbf3a64 Mon Sep 17 00:00:00 2001 From: saltyaom Date: Mon, 19 Aug 2024 17:35:31 +0700 Subject: [PATCH] :wrench: fix: support bun build --minify-identifiers --- CHANGELOG.md | 3 +++ package.json | 2 +- src/index.ts | 4 +--- 3 files changed, 5 insertions(+), 4 deletions(-) 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()]