Just be really really specific

(cherry picked from commit 920198959659329a7f7f7282a1293aaad198d8e3)
This commit is contained in:
Eric Bailey
2025-02-28 11:40:33 -06:00
parent e43b74d34d
commit f100545afb
3 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ export const bitdriftTransport: Transport = (
const log = logFunctions[level]
log(message.toString(), {
// match Sentry payload
context,
__context__: context,
...prepareMetadata(metadata),
})
}
+1 -1
View File
@@ -12,7 +12,7 @@ export const sentryTransport: Transport = (
) => {
const meta = {
// match Bitdrift payload
context,
__context__: context,
...prepareMetadata(metadata),
}
let _tags = tags || {}
+2 -1
View File
@@ -5,6 +5,7 @@
*/
export enum LogContext {
Default = 'logger',
Metric = 'metric',
Session = 'session',
Notifications = 'notifications',
ConversationAgent = 'conversation-agent',
@@ -35,7 +36,7 @@ export type Metadata = {
/**
* Reserved for appending `LogContext` to logging payloads
*/
context?: undefined
__context__?: undefined
/**
* Applied as Sentry breadcrumb types. Defaults to `default`.