Skip to content

Commit

Permalink
Add app.in_foreground to frontend-search files (#44157)
Browse files Browse the repository at this point in the history
  • Loading branch information
marandaneto authored Feb 6, 2023
1 parent 70edf1b commit 8207414
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions static/app/utils/fields/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ export enum FieldKey {
USER_ID = 'user.id',
USER_IP = 'user.ip',
USER_USERNAME = 'user.username',
APP_IN_FOREGROUND = 'app.in_foreground',
}

export enum FieldValueType {
Expand Down Expand Up @@ -926,6 +927,11 @@ const EVENT_FIELD_DEFINITIONS: Record<AllEventFieldKeys, FieldDefinition> = {
kind: FieldKind.FIELD,
valueType: FieldValueType.STRING,
},
[FieldKey.APP_IN_FOREGROUND]: {
desc: t('Indicates if the app is in the foreground or background'),
kind: FieldKind.FIELD,
valueType: FieldValueType.BOOLEAN,
},
};

export const ISSUE_FIELDS = [
Expand Down Expand Up @@ -991,6 +997,7 @@ export const ISSUE_FIELDS = [
FieldKey.USER_ID,
FieldKey.USER_IP,
FieldKey.USER_USERNAME,
FieldKey.APP_IN_FOREGROUND,
];

/**
Expand Down Expand Up @@ -1067,6 +1074,9 @@ export const DISCOVER_FIELDS = [
FieldKey.STACK_STACK_LEVEL,
// contexts.key and contexts.value omitted on purpose.

// App context fields
FieldKey.APP_IN_FOREGROUND,

// Transaction event fields.
FieldKey.TRANSACTION_DURATION,
FieldKey.TRANSACTION_OP,
Expand Down

0 comments on commit 8207414

Please sign in to comment.