In order to be able to have a better overview of how long different async operations take, we want to add better span labeling around async operations during the custom threshold rule execution. As an example, you can check how the security team does this using withSecuritySpan.
We only consider adding span for async operations, although we can do that for sync operations that we think might take long, but keep in mind that adding many spans will have a negative impact on performance and possibly debugging.
Summary
In order to be able to have a better overview of how long different async operations take, we want to add better span labeling around async operations during the custom threshold rule execution. As an example, you can check how the security team does this using withSecuritySpan.
There is an ongoing effort to label spans in the alerting framework as well.
Note
We only consider adding span for async operations, although we can do that for sync operations that we think might take long, but keep in mind that adding many spans will have a negative impact on performance and possibly debugging.
Implementation related info
Add the following to your Kibana config:
Going to https://kibana-cloud-apm.elastic.dev/ -> APM page, you should be able to filter the environment using your YOUR_USERNAME.
Acceptance criteria