Record transaction duration alerts in microseconds (#112366)
This commit is contained in:
parent
9eb74bebad
commit
506cfcf063
|
@ -59,7 +59,7 @@ describe('registerTransactionDurationAlertType', () => {
|
||||||
transactionType: 'request',
|
transactionType: 'request',
|
||||||
serviceName: 'opbeans-java',
|
serviceName: 'opbeans-java',
|
||||||
environment: 'Not defined',
|
environment: 'Not defined',
|
||||||
threshold: 3000,
|
threshold: 3000000,
|
||||||
triggerValue: '5,500 ms',
|
triggerValue: '5,500 ms',
|
||||||
interval: `5m`,
|
interval: `5m`,
|
||||||
});
|
});
|
||||||
|
|
|
@ -201,11 +201,11 @@ export function registerTransactionDurationAlertType({
|
||||||
[TRANSACTION_TYPE]: alertParams.transactionType,
|
[TRANSACTION_TYPE]: alertParams.transactionType,
|
||||||
[PROCESSOR_EVENT]: ProcessorEvent.transaction,
|
[PROCESSOR_EVENT]: ProcessorEvent.transaction,
|
||||||
[ALERT_EVALUATION_VALUE]: transactionDuration,
|
[ALERT_EVALUATION_VALUE]: transactionDuration,
|
||||||
[ALERT_EVALUATION_THRESHOLD]: alertParams.threshold,
|
[ALERT_EVALUATION_THRESHOLD]: thresholdMicroseconds,
|
||||||
[ALERT_REASON]: formatTransactionDurationReason({
|
[ALERT_REASON]: formatTransactionDurationReason({
|
||||||
measured: transactionDuration,
|
measured: transactionDuration,
|
||||||
serviceName: alertParams.serviceName,
|
serviceName: alertParams.serviceName,
|
||||||
threshold: alertParams.threshold,
|
threshold: thresholdMicroseconds,
|
||||||
asDuration,
|
asDuration,
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
|
@ -214,7 +214,7 @@ export function registerTransactionDurationAlertType({
|
||||||
transactionType: alertParams.transactionType,
|
transactionType: alertParams.transactionType,
|
||||||
serviceName: alertParams.serviceName,
|
serviceName: alertParams.serviceName,
|
||||||
environment: getEnvironmentLabel(alertParams.environment),
|
environment: getEnvironmentLabel(alertParams.environment),
|
||||||
threshold: alertParams.threshold,
|
threshold: thresholdMicroseconds,
|
||||||
triggerValue: transactionDurationFormatted,
|
triggerValue: transactionDurationFormatted,
|
||||||
interval: `${alertParams.windowSize}${alertParams.windowUnit}`,
|
interval: `${alertParams.windowSize}${alertParams.windowUnit}`,
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue