Logger metrics (#7867)

* Adjust datalake abstraction

(cherry picked from commit 8ba6a8d45b1bd5698afbd06d9e858a91789f0ea6)

* Just be really really specific

(cherry picked from commit 920198959659329a7f7f7282a1293aaad198d8e3)

* Add metric method to logger, replace datalake calls with new method

(cherry picked from commit 7a026bbeae75514b64f928d7ff59707c518fd5e5)

* Clarify types

(cherry picked from commit 422b150deb158a70ef37e8a456d91bf26cd0b1bc)
This commit is contained in:
Eric Bailey
2025-02-28 17:13:49 -06:00
committed by GitHub
parent 9e59a2eef2
commit 96f4f6359a
7 changed files with 63 additions and 18 deletions
+1 -2
View File
@@ -18,8 +18,7 @@ export const bitdriftTransport: Transport = (
) => {
const log = logFunctions[level]
log(message.toString(), {
// match Sentry payload
context,
__context__: context,
...prepareMetadata(metadata),
})
}
+1 -2
View File
@@ -11,8 +11,7 @@ export const sentryTransport: Transport = (
timestamp,
) => {
const meta = {
// match Bitdrift payload
context,
__context__: context,
...prepareMetadata(metadata),
}
let _tags = tags || {}