Add rule spaceId to APM transaction when a rule is running (#149600)

Resolves https://github.com/elastic/kibana/issues/149318

In this PR, I'm adding `alerting_rule_space_id` label to the apm
transaction whenever a rule is running.
This commit is contained in:
Mike Côté 2023-01-26 13:59:29 -05:00 committed by GitHub
parent 116492d6f0
commit 275fdeba85
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -487,6 +487,7 @@ export class TaskRunner<
if (apm.currentTransaction) {
apm.currentTransaction.name = `Execute Alerting Rule`;
apm.currentTransaction.addLabels({
alerting_rule_space_id: spaceId,
alerting_rule_id: ruleId,
});
}