-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add a troubleshooting section to the Contributing > Common Commands doc * Do not rely on global biome in justfile * Modify autometrics/src/platform.node.ts to work in deno test env (import process) * Add a test for infinite looping when readClosest cannot find a file in node.js * Format files to appease biome * Clean node modules from parcle transformer * HACK - fix type issues with parcel-transformer when building * Fix build-all and add utility for reloading deno cache * Update changelog * Bump version and update yarn lockfiles for examples * Remove clean-all from build-all because ci does not have bash extensions we need * Update contributing doc troubleshooting
- Loading branch information
Showing
11 changed files
with
87 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ __metadata: | |
version: 6 | ||
cacheKey: 8 | ||
|
||
"@autometrics/[email protected].0, @autometrics/autometrics@workspace:../../dist/autometrics": | ||
"@autometrics/[email protected].1, @autometrics/autometrics@workspace:../../dist/autometrics": | ||
version: 0.0.0-use.local | ||
resolution: "@autometrics/autometrics@workspace:../../dist/autometrics" | ||
dependencies: | ||
|
@@ -28,7 +28,7 @@ __metadata: | |
version: 0.0.0-use.local | ||
resolution: "@autometrics/exporter-prometheus@portal:../../dist/exporter-prometheus::locator=fastify-example%40workspace%3A." | ||
dependencies: | ||
"@autometrics/autometrics": 1.0.0 | ||
"@autometrics/autometrics": 1.0.1 | ||
"@opentelemetry/api": 1.7.0 | ||
"@opentelemetry/exporter-prometheus": 0.45.0 | ||
"@opentelemetry/sdk-metrics": 1.18.0 | ||
|
@@ -39,7 +39,7 @@ __metadata: | |
version: 0.0.0-use.local | ||
resolution: "@autometrics/exporter-prometheus@workspace:../../dist/exporter-prometheus" | ||
dependencies: | ||
"@autometrics/autometrics": 1.0.0 | ||
"@autometrics/autometrics": 1.0.1 | ||
"@opentelemetry/api": 1.7.0 | ||
"@opentelemetry/exporter-prometheus": 0.45.0 | ||
"@opentelemetry/sdk-metrics": 1.18.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ __metadata: | |
languageName: node | ||
linkType: hard | ||
|
||
"@autometrics/[email protected].0, @autometrics/autometrics@workspace:../../dist/autometrics": | ||
"@autometrics/[email protected].1, @autometrics/autometrics@workspace:../../dist/autometrics": | ||
version: 0.0.0-use.local | ||
resolution: "@autometrics/autometrics@workspace:../../dist/autometrics" | ||
dependencies: | ||
|
@@ -38,7 +38,7 @@ __metadata: | |
version: 0.0.0-use.local | ||
resolution: "@autometrics/exporter-otlp-http@portal:../../dist/exporter-otlp-http::locator=react-app-example%40workspace%3A." | ||
dependencies: | ||
"@autometrics/autometrics": 1.0.0 | ||
"@autometrics/autometrics": 1.0.1 | ||
"@opentelemetry/api": 1.7.0 | ||
"@opentelemetry/exporter-metrics-otlp-http": 0.45.0 | ||
"@opentelemetry/sdk-metrics": 1.18.0 | ||
|
@@ -49,7 +49,7 @@ __metadata: | |
version: 0.0.0-use.local | ||
resolution: "@autometrics/exporter-prometheus@workspace:../../dist/exporter-prometheus" | ||
dependencies: | ||
"@autometrics/autometrics": 1.0.0 | ||
"@autometrics/autometrics": 1.0.1 | ||
"@opentelemetry/api": 1.7.0 | ||
"@opentelemetry/exporter-prometheus": 0.45.0 | ||
"@opentelemetry/sdk-metrics": 1.18.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
"private": true, | ||
"name": "autometrics-monorepo", | ||
"packageManager": "[email protected]", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"workspaces": [ | ||
"dist/autometrics", | ||
"dist/exporter-otlp-http", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { assertThrows } from "$std/assert/mod.ts"; | ||
import { readClosest } from "../src/platform.node.ts"; | ||
|
||
Deno.test("Node.js platform tests", async (t) => { | ||
// NOTE: Added this test as a quick way to cover the fix from #149 - fix an infinite loop which happens when autometrics is initialized in a node service without a git repository | ||
await t.step( | ||
"readClosest does not loop infinitely on nonexistent file", | ||
() => { | ||
assertThrows( | ||
() => readClosest("nonexistent.file"), | ||
Error, | ||
"Could not read nonexistent.file", | ||
); | ||
}, | ||
); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,4 +11,4 @@ type-check: | |
yarn tsc -p tsconfig.json --noEmit | ||
|
||
clean: | ||
rm -Rf dist | ||
rm -Rf dist node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
declare module "@parcel/profiler" { | ||
type TraceMeasurement = {}; | ||
} | ||
|
||
declare module "@parcel/watcher" { | ||
type Event = {}; | ||
type EventType = {}; | ||
type AsyncSubscription = {}; | ||
type Options = {}; | ||
} |