Skip to content

Commit fca9a23

Browse files
Zylphrexandrewshie-sentry
authored andcommitted
feat(explore): Add is_transaction to explore fields (#83423)
1 parent e3ff761 commit fca9a23

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

static/app/utils/fields/index.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1155,6 +1155,7 @@ export const SPAN_OP_FIELDS: Record<SpanOpBreakdown, FieldDefinition> = {
11551155
};
11561156

11571157
type TraceFields =
1158+
| SpanIndexedField.IS_TRANSACTION
11581159
| SpanIndexedField.SPAN_ACTION
11591160
| SpanIndexedField.SPAN_DESCRIPTION
11601161
| SpanIndexedField.SPAN_DOMAIN
@@ -1225,6 +1226,11 @@ export const TRACE_FIELD_DEFINITIONS: Record<TraceFields, FieldDefinition> = {
12251226
kind: FieldKind.FIELD,
12261227
valueType: FieldValueType.STRING,
12271228
},
1229+
[SpanIndexedField.IS_TRANSACTION]: {
1230+
desc: t('The span is also a transaction'),
1231+
kind: FieldKind.FIELD,
1232+
valueType: FieldValueType.BOOLEAN,
1233+
},
12281234
};
12291235

12301236
type AllEventFieldKeys =

static/app/views/explore/contexts/spanTagsContext.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ export function SpanTagsProvider({children, dataset, enabled}: SpanTagsProviderP
101101
SpanIndexedField.USER_ID,
102102
SpanIndexedField.USER_IP,
103103
SpanIndexedField.USER_USERNAME,
104+
SpanIndexedField.IS_TRANSACTION, // boolean field but we can expose it as a string
104105
].map(tag => [
105106
tag,
106107
{

static/app/views/insights/types.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,7 @@ export enum SpanIndexedField {
266266
MESSAGING_MESSAGE_RETRY_COUNT = 'measurements.messaging.message.retry.count',
267267
MESSAGING_MESSAGE_DESTINATION_NAME = 'messaging.destination.name',
268268
USER_GEO_SUBREGION = 'user.geo.subregion',
269+
IS_TRANSACTION = 'is_transaction',
269270
}
270271

271272
export type SpanIndexedResponse = {

0 commit comments

Comments
 (0)