Skip to content

Commit

Permalink
Release 0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
actualwitch committed Feb 28, 2024
1 parent 7e3eec5 commit 142e4e6
Show file tree
Hide file tree
Showing 5 changed files with 418 additions and 7,782 deletions.
7 changes: 5 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,14 @@ branding:
inputs:
pushgateway:
required: true
description: "Full URL to the aggregation gateway (like zapier's), including the /metrics suffix"
description: "URL to the aggregation gateway, for example `http://localhost:9091`"
gatewaytype:
required: false
description: "Type of the aggregation gateway, one of `prometheus`, `gravel`, or `zapier`. Currently only changes the url format in case of prometheus"
buckets:
required: false
description: "Comma separated list of buckets for duration histogram, with or without the brackets []"
runs:
using: "node16"
using: "node20"
main: "main/index.js"
post: "post/index.js"
10 changes: 8 additions & 2 deletions main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,20 @@ var __webpack_exports__ = {};
const external_fs_namespaceObject = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("fs");
;// CONCATENATED MODULE: external "os"
const external_os_namespaceObject = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("os");
;// CONCATENATED MODULE: ./src/const.ts
;// CONCATENATED MODULE: external "perf_hooks"
const external_perf_hooks_namespaceObject = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("perf_hooks");
;// CONCATENATED MODULE: ./src/metrics/const.ts
const TMP_VAR_NAME = "AUTOMETRICS_START";
const TMP_VAR_GITHUB_NAME = `STATE_${TMP_VAR_NAME}`;
const HISTOGRAM_NAME = "workflow.jobs.duration";
const COUNTER_NAME = "workflow.jobs.count";

;// CONCATENATED MODULE: ./src/main.ts



external_fs_namespaceObject.appendFileSync(process.env.GITHUB_STATE, `${TMP_VAR_NAME}=${new Date().valueOf()}${external_os_namespaceObject.EOL}`, {

(0,external_fs_namespaceObject.appendFileSync)(process.env.GITHUB_STATE, `${TMP_VAR_NAME}=${external_perf_hooks_namespaceObject.performance.now()}${external_os_namespaceObject.EOL}`, {
encoding: "utf8",
});

14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"build": "npx concurrently -- \"npm run build:main\" \"npm run build:post\"",
"build:main": "ncc build src/main.ts -o main",
"build:post": "ncc build src/post.ts -o post",
"test": "tsc"
"build:test": "ncc build src/test.ts -o test"
},
"repository": {
"type": "git",
Expand All @@ -23,14 +23,14 @@
},
"homepage": "https://github.com/autometrics-dev/instrument-pipeline#readme",
"dependencies": {
"@opentelemetry/exporter-prometheus": "^0.40.0",
"@opentelemetry/sdk-metrics": "^1.14.0",
"node-fetch": "^3.3.1"
"@opentelemetry/exporter-prometheus": "^0.48.0",
"@opentelemetry/sdk-metrics": "^1.21.0"
},
"devDependencies": {
"@tsconfig/strictest": "^2.0.1",
"@types/node": "^20.4.1",
"@vercel/ncc": "^0.36.1",
"@tsconfig/strictest": "^2.0.3",
"@types/node": "^20.11.22",
"@vercel/ncc": "^0.38.1",
"concurrently": "^8.2.2",
"typescript": "next"
}
}
Loading

0 comments on commit 142e4e6

Please sign in to comment.