Skip to content

Commit 511f9b9

Browse files
Merge branch 'priscila/feat/getting-started-docs/add-playstation-doc' into priscila/feat/add-private-gaming-sdk-access-modal
2 parents 8b1ffdf + b2199fd commit 511f9b9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

static/gsAdmin/views/dynamicSamplingPanel.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ enum RuleType {
7272
REBALANCE_TRANSACTIONS = 'Rebalance Transactions', // Boost Low Volume Transactions
7373
BOOST_REPLAY_ID = 'Boost Replay ID',
7474
INVESTIGATION_RULE = 'Investigation Rule',
75+
MINIMUM_SAMPLE_RATE_TARGET = 'Minimum Sample Rate',
7576
}
7677

7778
const getRuleType = ({id}: RuleV2): RuleType | undefined => {
@@ -82,6 +83,7 @@ const getRuleType = ({id}: RuleV2): RuleType | undefined => {
8283
1003: RuleType.BOOST_KEY_TRANSACTIONS,
8384
1004: RuleType.RECALIBRATION_RULE,
8485
1005: RuleType.BOOST_REPLAY_ID,
86+
1006: RuleType.MINIMUM_SAMPLE_RATE_TARGET,
8587
};
8688

8789
if (id in RESERVED_IDS) {
@@ -322,7 +324,10 @@ function DynamicSamplingRulesTable({
322324
const round = (value: number) => Math.round(value * 10000) / 10000;
323325

324326
const formatSamplingRateValue = (samplingValue: any) => {
325-
if (samplingValue.type === 'sampleRate') {
327+
if (
328+
samplingValue.type === 'sampleRate' ||
329+
samplingValue.type === 'minimumSampleRate'
330+
) {
326331
return `${round(samplingValue.value * 100)}%`;
327332
}
328333
if (samplingValue.type === 'reservoir') {

0 commit comments

Comments
 (0)