diff options
author | Eric Bailey <git@esb.lol> | 2025-02-28 17:13:49 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-28 17:13:49 -0600 |
commit | 96f4f6359add6a4f2a37df8f17cf3f2f59f0a2a6 (patch) | |
tree | afabc0fe9628a66f1db69f9e07b824db725aa6e1 /src/logger/types.ts | |
parent | 9e59a2eef2f82511a9a9a056dbdb0c62fe2f61c6 (diff) | |
download | voidsky-96f4f6359add6a4f2a37df8f17cf3f2f59f0a2a6.tar.zst |
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)
Diffstat (limited to 'src/logger/types.ts')
-rw-r--r-- | src/logger/types.ts | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/logger/types.ts b/src/logger/types.ts index 517893d29..9110a8c6f 100644 --- a/src/logger/types.ts +++ b/src/logger/types.ts @@ -9,6 +9,12 @@ export enum LogContext { Notifications = 'notifications', ConversationAgent = 'conversation-agent', DMsAgent = 'dms-agent', + + /** + * METRIC IS FOR INTERNAL USE ONLY, don't create any other loggers using this + * context + */ + Metric = 'metric', } export enum LogLevel { @@ -33,9 +39,9 @@ export type Transport = ( */ export type Metadata = { /** - * Reserved for appending `LogContext` to logging payloads + * Reserved for appending `LogContext` in logging payloads */ - context?: undefined + __context__?: undefined /** * Applied as Sentry breadcrumb types. Defaults to `default`. |