Skip to content

Commit

Permalink
🔧 fix: support bun build --minify-identifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
SaltyAom committed Aug 19, 2024
1 parent 7fded7f commit 70c9606
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 1 addition & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()]

Expand Down

0 comments on commit 70c9606

Please sign in to comment.