Skip to content

Commit 95fe018

Browse files
authored
Fix: Add attachment to SentryRequestType (#3561)
* Fix: Add attachment to SentryRequestType * Update CATEGORY_MAPPING * CATEGORY_MAPPING for node transport
1 parent d31ce8e commit 95fe018

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

packages/browser/src/transports/base.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ const CATEGORY_MAPPING: {
1515
event: 'error',
1616
transaction: 'transaction',
1717
session: 'session',
18+
attachment: 'attachment',
1819
};
1920

2021
/** Base Transport class implementation */

packages/node/src/transports/base.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ const CATEGORY_MAPPING: {
5151
event: 'error',
5252
transaction: 'transaction',
5353
session: 'session',
54+
attachment: 'attachment',
5455
};
5556

5657
/** Base Transport class implementation */

packages/types/src/request.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/** Possible SentryRequest types that can be used to make a distinction between Sentry features */
2-
export type SentryRequestType = 'event' | 'transaction' | 'session';
2+
export type SentryRequestType = 'event' | 'transaction' | 'session' | 'attachment';
33

44
/** A generic client request. */
55
export interface SentryRequest {

0 commit comments

Comments
 (0)