kibana/dev_docs/tutorials/performance
Dzmitry Lemechko aa45c2aee3
[kbn-journeys] add synthtrace support (#178599)
## Summary

Moving synthtrace clients init inside kbn-journeys:

esArchiver does not always solve the issue with data generation. We
already have afew journeys using Synthtrace instead and expect more to
come.

In order to simplify the process of creating new journeys, this PR moves
Synthtrace client initialisation into kbn-journey package and exposes a
way to define client type, generator function & its input arguments:

 ```
import { Journey, SynthtraceOptions } from '@kbn/journeys';
import { subj } from '@kbn/test-subj-selector';
import { generateApmData } from '../synthtrace_data/apm_data';

export const journey = new Journey({
  synthtrace: {
    type: 'apm',
    generator: generateApmData,
    options: {
      from: new Date(Date.now() - 1000 * 60 * 15),
      to: new Date(Date.now() + 1000 * 60 * 15),
    },
  },
})
```

PR also needs review from teams who use Synthtrace to understand if the implementation is matching expectations.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2024-03-18 16:42:45 -07:00
..
adding_api_capacity_test.mdx [docs] escape code with curly brackets to fix docs build 2023-01-18 13:16:07 -07:00
adding_custom_performance_metrics.mdx Update perf docs (#147533) 2023-01-18 17:56:05 +01:00
adding_performance_journey.mdx [kbn-journeys] add synthtrace support (#178599) 2024-03-18 16:42:45 -07:00
running_performance_journey_in_cloud.mdx chore(NA): rename journeys folder into journeys_e2e inside x-pack/performance to correctly classify journey e2e files (#178340) 2024-03-14 21:15:57 +00:00