Skip to content

Commit

Permalink
chore(web): disable upload form on submit
Browse files Browse the repository at this point in the history
  • Loading branch information
SaltyAom committed Oct 31, 2024
1 parent f3e5908 commit c9f771c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Binary file modified bun.lockb
Binary file not shown.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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",
Expand Down
5 changes: 1 addition & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit c9f771c

Please sign in to comment.