Just be really really specific
(cherry picked from commit 920198959659329a7f7f7282a1293aaad198d8e3)
This commit is contained in:
@@ -19,7 +19,7 @@ export const bitdriftTransport: Transport = (
|
||||
const log = logFunctions[level]
|
||||
log(message.toString(), {
|
||||
// match Sentry payload
|
||||
context,
|
||||
__context__: context,
|
||||
...prepareMetadata(metadata),
|
||||
})
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ export const sentryTransport: Transport = (
|
||||
) => {
|
||||
const meta = {
|
||||
// match Bitdrift payload
|
||||
context,
|
||||
__context__: context,
|
||||
...prepareMetadata(metadata),
|
||||
}
|
||||
let _tags = tags || {}
|
||||
|
||||
+2
-1
@@ -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`.
|
||||
|
||||
Reference in New Issue
Block a user