mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
[APM] Synthtrace - Add service.name in metricsetPicker for breakdown metrics (#140256)
* Add service.name in metricsetPicker for breakdown metrics * Run cypress tests on synthtrace changes
This commit is contained in:
parent
7be5ac42a0
commit
ee4b451ed4
2 changed files with 4 additions and 4 deletions
|
@ -90,7 +90,7 @@ const uploadPipeline = (pipelineContent: string | object) => {
|
|||
}
|
||||
|
||||
if (
|
||||
(await doAnyChangesMatch([/^x-pack\/plugins\/apm/])) ||
|
||||
(await doAnyChangesMatch([/^x-pack\/plugins\/apm/, /^packages\/kbn-apm-synthtrace/])) ||
|
||||
GITHUB_PR_LABELS.includes('ci:all-cypress-suites')
|
||||
) {
|
||||
pipeline.push(getPipeline('.buildkite/pipelines/pull_request/apm_cypress.yml'));
|
||||
|
|
|
@ -105,15 +105,16 @@ export function getBreakdownMetrics(events: ApmFields[]) {
|
|||
lastMeasurement = timestamp;
|
||||
}
|
||||
|
||||
const instance = pickBy(event, instancePicker);
|
||||
|
||||
const key = {
|
||||
'@timestamp': event['@timestamp']! - (event['@timestamp']! % (30 * 1000)),
|
||||
'transaction.type': transaction['transaction.type'],
|
||||
'transaction.name': transaction['transaction.name'],
|
||||
...pickBy(event, metricsetPicker),
|
||||
...instance,
|
||||
};
|
||||
|
||||
const instance = pickBy(event, instancePicker);
|
||||
|
||||
const metricsetId = objectHash(key);
|
||||
|
||||
let metricset = metricsets.get(metricsetId);
|
||||
|
@ -121,7 +122,6 @@ export function getBreakdownMetrics(events: ApmFields[]) {
|
|||
if (!metricset) {
|
||||
metricset = {
|
||||
...key,
|
||||
...instance,
|
||||
'processor.event': 'metric',
|
||||
'processor.name': 'metric',
|
||||
'metricset.name': `span_breakdown`,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue