@boxyhq/metrics 0.2.5 → 0.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -17,8 +17,8 @@ const timer_1 = require("./timer");
17
17
  *
18
18
  * @param operationParams
19
19
  */
20
- function instrument({ meter, name, delegate, instrumentAttributes }) {
21
- return __awaiter(this, void 0, void 0, function* () {
20
+ function instrument(_a) {
21
+ return __awaiter(this, arguments, void 0, function* ({ meter, name, delegate, instrumentAttributes }) {
22
22
  const start = process.hrtime.bigint();
23
23
  try {
24
24
  return yield delegate();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@boxyhq/metrics",
3
- "version": "0.2.5",
3
+ "version": "0.2.7",
4
4
  "description": "Internal SDK for OTel instrumentation",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -11,7 +11,10 @@
11
11
  "build": "tsc -p tsconfig.json",
12
12
  "prepublishOnly": "npm run build",
13
13
  "lint": "eslint -c .eslintrc.json --ext .ts ./",
14
- "test:manual": "env-cmd -f ./test/.env ts-node --project tsconfig.json test/index.ts"
14
+ "test:manual": "env-cmd -f ./test/.env ts-node --project tsconfig.json test/index.ts",
15
+ "check-format": "prettier --check .",
16
+ "format": "prettier --write .",
17
+ "release": "git checkout release && git merge origin/main && release-it && git checkout main && git merge origin/release && git push origin main"
15
18
  },
16
19
  "repository": {
17
20
  "type": "git",
@@ -27,22 +30,23 @@
27
30
  },
28
31
  "homepage": "https://github.com/boxyhq/metrics#readme",
29
32
  "dependencies": {
30
- "@opentelemetry/api": "1.4.1",
31
- "@opentelemetry/exporter-metrics-otlp-grpc": "0.41.2",
32
- "@opentelemetry/exporter-metrics-otlp-http": "0.41.2",
33
- "@opentelemetry/resources": "1.15.2",
34
- "@opentelemetry/sdk-metrics": "1.15.2",
35
- "@opentelemetry/semantic-conventions": "1.14.0"
33
+ "@opentelemetry/api": "1.8.0",
34
+ "@opentelemetry/exporter-metrics-otlp-grpc": "0.51.0",
35
+ "@opentelemetry/exporter-metrics-otlp-http": "0.51.0",
36
+ "@opentelemetry/resources": "1.24.0",
37
+ "@opentelemetry/sdk-metrics": "1.24.0",
38
+ "@opentelemetry/semantic-conventions": "1.24.0"
36
39
  },
37
40
  "devDependencies": {
38
- "@tsconfig/recommended": "1.0.2",
39
- "@typescript-eslint/eslint-plugin": "5.61.0",
40
- "@typescript-eslint/parser": "5.61.0",
41
+ "@tsconfig/recommended": "1.0.6",
42
+ "@typescript-eslint/eslint-plugin": "7.8.0",
43
+ "@typescript-eslint/parser": "7.8.0",
41
44
  "env-cmd": "10.1.0",
42
- "eslint": "8.44.0",
43
- "eslint-config-prettier": "8.8.0",
44
- "prettier": "3.0.3",
45
- "ts-node": "10.9.1",
46
- "typescript": "5.1.6"
45
+ "eslint": "8.57.0",
46
+ "eslint-config-prettier": "9.1.0",
47
+ "prettier": "3.2.5",
48
+ "release-it": "17.2.1",
49
+ "ts-node": "10.9.2",
50
+ "typescript": "5.4.5"
47
51
  }
48
52
  }