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]
|
const log = logFunctions[level]
|
||||||
log(message.toString(), {
|
log(message.toString(), {
|
||||||
// match Sentry payload
|
// match Sentry payload
|
||||||
context,
|
__context__: context,
|
||||||
...prepareMetadata(metadata),
|
...prepareMetadata(metadata),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ export const sentryTransport: Transport = (
|
|||||||
) => {
|
) => {
|
||||||
const meta = {
|
const meta = {
|
||||||
// match Bitdrift payload
|
// match Bitdrift payload
|
||||||
context,
|
__context__: context,
|
||||||
...prepareMetadata(metadata),
|
...prepareMetadata(metadata),
|
||||||
}
|
}
|
||||||
let _tags = tags || {}
|
let _tags = tags || {}
|
||||||
|
|||||||
+2
-1
@@ -5,6 +5,7 @@
|
|||||||
*/
|
*/
|
||||||
export enum LogContext {
|
export enum LogContext {
|
||||||
Default = 'logger',
|
Default = 'logger',
|
||||||
|
Metric = 'metric',
|
||||||
Session = 'session',
|
Session = 'session',
|
||||||
Notifications = 'notifications',
|
Notifications = 'notifications',
|
||||||
ConversationAgent = 'conversation-agent',
|
ConversationAgent = 'conversation-agent',
|
||||||
@@ -35,7 +36,7 @@ export type Metadata = {
|
|||||||
/**
|
/**
|
||||||
* Reserved for appending `LogContext` to logging payloads
|
* Reserved for appending `LogContext` to logging payloads
|
||||||
*/
|
*/
|
||||||
context?: undefined
|
__context__?: undefined
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Applied as Sentry breadcrumb types. Defaults to `default`.
|
* Applied as Sentry breadcrumb types. Defaults to `default`.
|
||||||
|
|||||||
Reference in New Issue
Block a user