-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: add log field filtering to remove unnecessary metadata (#197)
### Description This PR adds the `logDataTransformer` callback to the Loki Logging class to filter specific fields in a log. ### Motivation The `edge-gateway` worker currently produces logs with many unnecessary fields that can be removed to reduce log data size and lower costs. More details can be found in [issue #175](storacha/project-tracking#175). ### Changes (edge-gateway) - Upgraded `@web3-storage/worker-utils/loki` package to the latest version - Upgraded `toucan-js` to version 3.x for compatibility with `@web3-storage/worker-utils/loki` - Upgraded `@sentry/cli` to ensure compatibility with `toucan-js` - Added `logDataTransformer` callback in the Loki Logging constructor for custom log field filtering
- Loading branch information
1 parent
d723fe6
commit 10e9d17
Showing
3 changed files
with
5,434 additions
and
6,160 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ | |
"mock:cf-ipfs.com": "smoke -p 9083 test/mocks/cf-ipfs.com" | ||
}, | ||
"dependencies": { | ||
"@web3-storage/worker-utils": "^0.3.0-dev", | ||
"@web3-storage/worker-utils": "^0.6.0-dev", | ||
"ipfs-core-utils": "^0.15.0", | ||
"ipfs-gateway-race": "link:../ipfs-gateway-race", | ||
"itty-router": "^2.4.5", | ||
|
@@ -28,12 +28,12 @@ | |
"p-retry": "^5.0.0", | ||
"p-settle": "^5.0.0", | ||
"p-some": "^5.0.0", | ||
"toucan-js": "^2.5.0", | ||
"toucan-js": "^3.4.0", | ||
"uint8arrays": "^3.0.0" | ||
}, | ||
"devDependencies": { | ||
"@cloudflare/workers-types": "^3.7.1", | ||
"@sentry/cli": "^1.71.0", | ||
"@sentry/cli": "^2.7.0", | ||
"@types/git-rev-sync": "^2.0.0", | ||
"@web-std/fetch": "^4.0.0", | ||
"ava": "^3.15.0", | ||
|
@@ -65,4 +65,4 @@ | |
}, | ||
"author": "Vasco Santos <[email protected]>", | ||
"license": "Apache-2.0 OR MIT" | ||
} | ||
} |
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
Oops, something went wrong.