File tree 5 files changed +29
-2
lines changed
5 files changed +29
-2
lines changed Original file line number Diff line number Diff line change @@ -377,6 +377,16 @@ export const DATA_CATEGORY_INFO = {
377
377
uid : 17 ,
378
378
isBilledCategory : false , // TODO(Continuous Profiling GA): make true for launch to show spend notification toggle
379
379
} ,
380
+ [ DataCategoryExact . PROFILE_DURATION_UI ] : {
381
+ name : DataCategoryExact . PROFILE_DURATION_UI ,
382
+ apiName : 'profile_duration_ui' ,
383
+ plural : 'profileDurationUI' ,
384
+ displayName : 'UI profile hour' ,
385
+ titleName : t ( 'UI Profile Hours' ) ,
386
+ productName : t ( 'UI Profiling' ) ,
387
+ uid : 25 ,
388
+ isBilledCategory : false , // TODO(Continuous Profiling GA): make true for launch to show spend notification toggle
389
+ } ,
380
390
[ DataCategoryExact . UPTIME ] : {
381
391
name : DataCategoryExact . UPTIME ,
382
392
apiName : 'uptime' ,
Original file line number Diff line number Diff line change @@ -79,6 +79,7 @@ export enum DataCategory {
79
79
REPLAYS = 'replays' ,
80
80
MONITOR_SEATS = 'monitorSeats' ,
81
81
PROFILE_DURATION = 'profileDuration' ,
82
+ PROFILE_DURATION_UI = 'profileDurationUI' ,
82
83
SPANS = 'spans' ,
83
84
SPANS_INDEXED = 'spansIndexed' ,
84
85
PROFILE_CHUNKS = 'profileChunks' ,
@@ -102,6 +103,7 @@ export enum DataCategoryExact {
102
103
MONITOR = 'monitor' ,
103
104
MONITOR_SEAT = 'monitorSeat' ,
104
105
PROFILE_DURATION = 'profileDuration' ,
106
+ PROFILE_DURATION_UI = 'profileDurationUI' ,
105
107
SPAN = 'span' ,
106
108
SPAN_INDEXED = 'spanIndexed' ,
107
109
UPTIME = 'uptime' ,
Original file line number Diff line number Diff line change @@ -911,7 +911,13 @@ const iconSizes: Sizes = {
911
911
const dataCategory : Record <
912
912
Exclude <
913
913
DataCategory ,
914
- 'profiles' | 'profileChunks' | 'profileDuration' | 'spans' | 'spansIndexed' | 'uptime'
914
+ | 'profiles'
915
+ | 'profileChunks'
916
+ | 'profileDuration'
917
+ | 'profileDurationUI'
918
+ | 'spans'
919
+ | 'spansIndexed'
920
+ | 'uptime'
915
921
> ,
916
922
string
917
923
> = {
Original file line number Diff line number Diff line change @@ -263,7 +263,10 @@ export class OrganizationStats extends Component<OrganizationStatsProps> {
263
263
if ( DATA_CATEGORY_INFO . transaction . plural === opt . value ) {
264
264
return ! organization . features . includes ( 'spans-usage-tracking' ) ;
265
265
}
266
- if ( DATA_CATEGORY_INFO . profileDuration . plural === opt . value ) {
266
+ if (
267
+ DATA_CATEGORY_INFO . profileDuration . plural === opt . value ||
268
+ DATA_CATEGORY_INFO . profileDurationUI . plural === opt . value
269
+ ) {
267
270
return (
268
271
organization . features . includes ( 'continuous-profiling-stats' ) ||
269
272
organization . features . includes ( 'continuous-profiling' )
Original file line number Diff line number Diff line change @@ -86,6 +86,12 @@ export const CHART_OPTIONS_DATACATEGORY: CategoryOption[] = [
86
86
disabled : false ,
87
87
yAxisMinInterval : 100 ,
88
88
} ,
89
+ {
90
+ label : DATA_CATEGORY_INFO . profileDurationUI . titleName ,
91
+ value : DATA_CATEGORY_INFO . profileDurationUI . plural ,
92
+ disabled : false ,
93
+ yAxisMinInterval : 100 ,
94
+ } ,
89
95
] ;
90
96
91
97
export enum ChartDataTransform {
You can’t perform that action at this time.
0 commit comments