Skip to content

Commit

Permalink
Fix issues with opentelemetry dependencies
Browse files Browse the repository at this point in the history
Per open-telemetry/opentelemetry-js#3976, 1.15.0 and
0.41.0 versions have import failures. This commit pins those dependencies.

Additionally, test is setup correctly so that observability does not require
jest as a dependency.
  • Loading branch information
dbcfd committed Jul 10, 2023
1 parent 6a877de commit 15cdf88
Show file tree
Hide file tree
Showing 2 changed files with 692 additions and 687 deletions.
24 changes: 13 additions & 11 deletions packages/service-metrics/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ceramicnetwork/observability",
"version": "1.4.0",
"version": "1.4.1",
"description": "Typescript library for instrumenting ceramic networks",
"author": "Golda Velez <golda@3box.io>",
"license": "(Apache-2.0 OR MIT)",
Expand All @@ -19,7 +19,7 @@
"build:types": "tsc --emitDeclarationOnly --skipLibCheck",
"build": "pnpm run build:clean && pnpm run build:types && pnpm run build:js",
"lint": "eslint src test --fix",
"test": "node --experimental-vm-modules ../../node_modules/jest/bin/jest.js",
"test": "NODE_OPTIONS=--experimental-vm-modules npx jest --silent --coverage --passWithNoTests",
"test:ci": "pnpm run test --ci --coverage",
"prepare": "pnpm run build",
"prepublishOnly": "package-check",
Expand All @@ -40,14 +40,16 @@
},
"homepage": "https://github.com/ceramicnetwork/observability#readme",
"dependencies": {
"@jest/globals": "^29.5.0",
"@opentelemetry/api": "^1.3.0",
"@opentelemetry/exporter-metrics-otlp-http": "^0.34.0",
"@opentelemetry/exporter-prometheus": "^0.40.0",
"@opentelemetry/exporter-trace-otlp-http": "^0.34.0",
"@opentelemetry/resources": "^1.8.0",
"@opentelemetry/sdk-metrics": "^1.8.0",
"@opentelemetry/sdk-trace-base": "^1.8.0",
"@opentelemetry/semantic-conventions": "^1.8.0"
"@opentelemetry/api": "^1.4.1",
"@opentelemetry/exporter-metrics-otlp-http": "0.40.0",
"@opentelemetry/exporter-prometheus": "0.40.0",
"@opentelemetry/exporter-trace-otlp-http": "0.40.0",
"@opentelemetry/resources": "1.14.0",
"@opentelemetry/sdk-metrics": "1.14.0",
"@opentelemetry/sdk-trace-base": "1.14.0",
"@opentelemetry/semantic-conventions": "1.14.0"
},
"devDependencies": {
"@jest/globals": "^29.6.1"
}
}
Loading

0 comments on commit 15cdf88

Please sign in to comment.