(
+ generateServiceMapElements({ size, hasAnomalies: true })
+ );
+ return (
+
+
+
+ {
+ setElements(
+ generateServiceMapElements({ size, hasAnomalies: true })
+ );
+ setJson('');
+ }}
+ >
+ Generate service map
+
+
+
+
+ setSize(e.target.valueAsNumber)}
+ />
+
+
+
+ {
+ setJson(JSON.stringify({ elements }, null, 2));
+ }}
+ >
+ Get JSON
+
+
+
+
+
+
+
+
+ {json && (
+
+ )}
+
+ );
+}
+
+export function MapFromJSON() {
+ const [json, setJson] = useState(
+ getSessionJson() || JSON.stringify(exampleResponseTodo, null, 2)
+ );
+ const [error, setError] = useState();
+
+ const [elements, setElements] = useState([]);
+ useEffect(() => {
+ try {
+ setElements(JSON.parse(json).elements);
+ } catch (e) {
+ setError(e.message);
+ }
+ // eslint-disable-next-line react-hooks/exhaustive-deps
+ }, []);
+
+ return (
+
+
+
+
+
+
+
+ {
+ setJson(value);
+ }}
+ />
+
+
+
+ {
+ const item = event?.item(0);
+
+ if (item) {
+ const f = new FileReader();
+ f.onload = (onloadEvent) => {
+ const result = onloadEvent?.target?.result;
+ if (typeof result === 'string') {
+ setJson(result);
+ }
+ };
+ f.readAsText(item);
+ }
+ }}
+ />
+
+ {
+ try {
+ setElements(JSON.parse(json).elements);
+ setSessionJson(json);
+ setError(undefined);
+ } catch (e) {
+ setError(e.message);
+ }
+ }}
+ >
+ Render JSON
+
+
+
+
+
+
+ );
+}
+
+export function TodoApp() {
+ return (
+
+
+
+
+
+ );
+}
+
+export function OpbeansAndBeats() {
+ return (
+
+
+
+
+
+ );
+}
+
+export function HipsterStore() {
+ return (
+
+
+
+
+
+ );
+}
diff --git a/x-pack/plugins/apm/public/components/app/ServiceMap/__stories__/example_grouped_connections.json b/x-pack/plugins/apm/public/components/app/ServiceMap/__stories__/example_grouped_connections.json
new file mode 100644
index 0000000000000..55686f99f388a
--- /dev/null
+++ b/x-pack/plugins/apm/public/components/app/ServiceMap/__stories__/example_grouped_connections.json
@@ -0,0 +1,875 @@
+{
+ "id": "resourceGroup{elastic-co-frontend}",
+ "span.type": "external",
+ "label": "124 resources",
+ "groupedConnections": [
+ {
+ "label": "813-mam-392.mktoresp.com:443",
+ "span.subtype": "http",
+ "span.destination.service.resource": "813-mam-392.mktoresp.com:443",
+ "span.type": "external",
+ "id": ">813-mam-392.mktoresp.com:443"
+ },
+ {
+ "label": "813-mam-392.mktoutil.com:443",
+ "span.subtype": "http",
+ "span.destination.service.resource": "813-mam-392.mktoutil.com:443",
+ "span.type": "external",
+ "id": ">813-mam-392.mktoutil.com:443"
+ },
+ {
+ "label": "8d1f.com:443",
+ "span.subtype": "link",
+ "span.destination.service.resource": "8d1f.com:443",
+ "span.type": "resource",
+ "id": ">8d1f.com:443"
+ },
+ {
+ "label": "a.ssl-checking.com:443",
+ "span.subtype": "xmlhttprequest",
+ "span.destination.service.resource": "a.ssl-checking.com:443",
+ "span.type": "resource",
+ "id": ">a.ssl-checking.com:443"
+ },
+ {
+ "label": "a18132920325.cdn.optimizely.com:443",
+ "span.subtype": "iframe",
+ "span.destination.service.resource": "a18132920325.cdn.optimizely.com:443",
+ "span.type": "resource",
+ "id": ">a18132920325.cdn.optimizely.com:443"
+ },
+ {
+ "label": "api.contentstack.io:443",
+ "span.subtype": "img",
+ "span.destination.service.resource": "api.contentstack.io:443",
+ "span.type": "resource",
+ "id": ">api.contentstack.io:443"
+ },
+ {
+ "label": "assets.website-files.com:443",
+ "span.subtype": "css",
+ "span.destination.service.resource": "assets.website-files.com:443",
+ "span.type": "resource",
+ "id": ">assets.website-files.com:443"
+ },
+ {
+ "label": "bat.bing.com:443",
+ "span.subtype": "img",
+ "span.destination.service.resource": "bat.bing.com:443",
+ "span.type": "resource",
+ "id": ">bat.bing.com:443"
+ },
+ {
+ "label": "bid.g.doubleclick.net:443",
+ "span.subtype": "iframe",
+ "span.destination.service.resource": "bid.g.doubleclick.net:443",
+ "span.type": "resource",
+ "id": ">bid.g.doubleclick.net:443"
+ },
+ {
+ "label": "cdn.iubenda.com:443",
+ "span.subtype": "iframe",
+ "span.destination.service.resource": "cdn.iubenda.com:443",
+ "span.type": "resource",
+ "id": ">cdn.iubenda.com:443"
+ },
+ {
+ "label": "cdn.loom.com:443",
+ "span.subtype": "css",
+ "span.destination.service.resource": "cdn.loom.com:443",
+ "span.type": "resource",
+ "id": ">cdn.loom.com:443"
+ },
+ {
+ "label": "cdn.optimizely.com:443",
+ "span.subtype": "script",
+ "span.destination.service.resource": "cdn.optimizely.com:443",
+ "span.type": "resource",
+ "id": ">cdn.optimizely.com:443"
+ },
+ {
+ "label": "cdncache-a.akamaihd.net:443",
+ "span.subtype": "http",
+ "span.destination.service.resource": "cdncache-a.akamaihd.net:443",
+ "span.type": "external",
+ "id": ">cdncache-a.akamaihd.net:443"
+ },
+ {
+ "label": "cloud.githubusercontent.com:443",
+ "span.subtype": "img",
+ "span.destination.service.resource": "cloud.githubusercontent.com:443",
+ "span.type": "resource",
+ "id": ">cloud.githubusercontent.com:443"
+ },
+ {
+ "label": "config.privoxy.org:443",
+ "span.subtype": "script",
+ "span.destination.service.resource": "config.privoxy.org:443",
+ "span.type": "resource",
+ "id": ">config.privoxy.org:443"
+ },
+ {
+ "label": "connect.facebook.net:443",
+ "span.subtype": "script",
+ "span.destination.service.resource": "connect.facebook.net:443",
+ "span.type": "resource",
+ "id": ">connect.facebook.net:443"
+ },
+ {
+ "label": "dpx.airpr.com:443",
+ "span.subtype": "img",
+ "span.destination.service.resource": "dpx.airpr.com:443",
+ "span.type": "resource",
+ "id": ">dpx.airpr.com:443"
+ },
+ {
+ "label": "errors.client.optimizely.com:443",
+ "span.subtype": "http",
+ "span.destination.service.resource": "errors.client.optimizely.com:443",
+ "span.type": "external",
+ "id": ">errors.client.optimizely.com:443"
+ },
+ {
+ "label": "fonts.googleapis.com:443",
+ "span.subtype": "css",
+ "span.destination.service.resource": "fonts.googleapis.com:443",
+ "span.type": "resource",
+ "id": ">fonts.googleapis.com:443"
+ },
+ {
+ "label": "fonts.gstatic.com:443",
+ "span.subtype": "css",
+ "span.destination.service.resource": "fonts.gstatic.com:443",
+ "span.type": "resource",
+ "id": ">fonts.gstatic.com:443"
+ },
+ {
+ "label": "ga.clearbit.com:443",
+ "span.subtype": "script",
+ "span.destination.service.resource": "ga.clearbit.com:443",
+ "span.type": "resource",
+ "id": ">ga.clearbit.com:443"
+ },
+ {
+ "label": "gc.kis.v2.scr.kaspersky-labs.com:443",
+ "span.subtype": "script",
+ "span.destination.service.resource": "gc.kis.v2.scr.kaspersky-labs.com:443",
+ "span.type": "resource",
+ "id": ">gc.kis.v2.scr.kaspersky-labs.com:443"
+ },
+ {
+ "label": "googleads.g.doubleclick.net:443",
+ "span.subtype": "script",
+ "span.destination.service.resource": "googleads.g.doubleclick.net:443",
+ "span.type": "resource",
+ "id": ">googleads.g.doubleclick.net:443"
+ },
+ {
+ "label": "hits-i.iubenda.com:443",
+ "span.subtype": "http",
+ "span.destination.service.resource": "hits-i.iubenda.com:443",
+ "span.type": "external",
+ "id": ">hits-i.iubenda.com:443"
+ },
+ {
+ "label": "host-1r8dhi.api.swiftype.com:443",
+ "span.subtype": "http",
+ "span.destination.service.resource": "host-1r8dhi.api.swiftype.com:443",
+ "span.type": "external",
+ "id": ">host-1r8dhi.api.swiftype.com:443"
+ },
+ {
+ "label": "host-nm1h2z.api.swiftype.com:443",
+ "span.subtype": "http",
+ "span.destination.service.resource": "host-nm1h2z.api.swiftype.com:443",
+ "span.type": "external",
+ "id": ">host-nm1h2z.api.swiftype.com:443"
+ },
+ {
+ "label": "images.contentstack.io:443",
+ "span.subtype": "css",
+ "span.destination.service.resource": "images.contentstack.io:443",
+ "span.type": "resource",
+ "id": ">images.contentstack.io:443"
+ },
+ {
+ "label": "info.elastic.co:443",
+ "span.subtype": "iframe",
+ "span.destination.service.resource": "info.elastic.co:443",
+ "span.type": "resource",
+ "id": ">info.elastic.co:443"
+ },
+ {
+ "label": "info.elastic.co:80",
+ "span.subtype": "img",
+ "span.destination.service.resource": "info.elastic.co:80",
+ "span.type": "resource",
+ "id": ">info.elastic.co:80"
+ },
+ {
+ "label": "js.clearbit.com:443",
+ "span.subtype": "script",
+ "span.destination.service.resource": "js.clearbit.com:443",
+ "span.type": "resource",
+ "id": ">js.clearbit.com:443"
+ },
+ {
+ "label": "lh4.googleusercontent.com:443",
+ "span.subtype": "img",
+ "span.destination.service.resource": "lh4.googleusercontent.com:443",
+ "span.type": "resource",
+ "id": ">lh4.googleusercontent.com:443"
+ },
+ {
+ "label": "lh6.googleusercontent.com:443",
+ "span.subtype": "img",
+ "span.destination.service.resource": "lh6.googleusercontent.com:443",
+ "span.type": "resource",
+ "id": ">lh6.googleusercontent.com:443"
+ },
+ {
+ "label": "logx.optimizely.com:443",
+ "span.subtype": "http",
+ "span.destination.service.resource": "logx.optimizely.com:443",
+ "span.type": "external",
+ "id": ">logx.optimizely.com:443"
+ },
+ {
+ "label": "m98.prod2016.com:443",
+ "span.subtype": "http",
+ "span.destination.service.resource": "m98.prod2016.com:443",
+ "span.type": "external",
+ "id": ">m98.prod2016.com:443"
+ },
+ {
+ "label": "maps.googleapis.com:443",
+ "span.subtype": "img",
+ "span.destination.service.resource": "maps.googleapis.com:443",
+ "span.type": "resource",
+ "id": ">maps.googleapis.com:443"
+ },
+ {
+ "label": "maps.gstatic.com:443",
+ "span.subtype": "css",
+ "span.destination.service.resource": "maps.gstatic.com:443",
+ "span.type": "resource",
+ "id": ">maps.gstatic.com:443"
+ },
+ {
+ "label": "munchkin.marketo.net:443",
+ "span.subtype": "script",
+ "span.destination.service.resource": "munchkin.marketo.net:443",
+ "span.type": "resource",
+ "id": ">munchkin.marketo.net:443"
+ },
+ {
+ "label": "negbar.ad-blocker.org:443",
+ "span.subtype": "script",
+ "span.destination.service.resource": "negbar.ad-blocker.org:443",
+ "span.type": "resource",
+ "id": ">negbar.ad-blocker.org:443"
+ },
+ {
+ "label": "p.typekit.net:443",
+ "span.subtype": "css",
+ "span.destination.service.resource": "p.typekit.net:443",
+ "span.type": "resource",
+ "id": ">p.typekit.net:443"
+ },
+ {
+ "label": "platform.twitter.com:443",
+ "span.subtype": "iframe",
+ "span.destination.service.resource": "platform.twitter.com:443",
+ "span.type": "resource",
+ "id": ">platform.twitter.com:443"
+ },
+ {
+ "label": "play.vidyard.com:443",
+ "span.subtype": "iframe",
+ "span.destination.service.resource": "play.vidyard.com:443",
+ "span.type": "resource",
+ "id": ">play.vidyard.com:443"
+ },
+ {
+ "label": "px.ads.linkedin.com:443",
+ "span.subtype": "img",
+ "span.destination.service.resource": "px.ads.linkedin.com:443",
+ "span.type": "resource",
+ "id": ">px.ads.linkedin.com:443"
+ },
+ {
+ "label": "px.airpr.com:443",
+ "span.subtype": "script",
+ "span.destination.service.resource": "px.airpr.com:443",
+ "span.type": "resource",
+ "id": ">px.airpr.com:443"
+ },
+ {
+ "label": "q.quora.com:443",
+ "span.subtype": "img",
+ "span.destination.service.resource": "q.quora.com:443",
+ "span.type": "resource",
+ "id": ">q.quora.com:443"
+ },
+ {
+ "label": "risk.clearbit.com:443",
+ "span.subtype": "http",
+ "span.destination.service.resource": "risk.clearbit.com:443",
+ "span.type": "external",
+ "id": ">risk.clearbit.com:443"
+ },
+ {
+ "label": "rtp-static.marketo.com:443",
+ "span.subtype": "http",
+ "span.destination.service.resource": "rtp-static.marketo.com:443",
+ "span.type": "external",
+ "id": ">rtp-static.marketo.com:443"
+ },
+ {
+ "label": "rum.optimizely.com:443",
+ "span.subtype": "http",
+ "span.destination.service.resource": "rum.optimizely.com:443",
+ "span.type": "external",
+ "id": ">rum.optimizely.com:443"
+ },
+ {
+ "label": "s3-us-west-1.amazonaws.com:443",
+ "span.subtype": "script",
+ "span.destination.service.resource": "s3-us-west-1.amazonaws.com:443",
+ "span.type": "resource",
+ "id": ">s3-us-west-1.amazonaws.com:443"
+ },
+ {
+ "label": "sjrtp2-cdn.marketo.com:443",
+ "span.subtype": "script",
+ "span.destination.service.resource": "sjrtp2-cdn.marketo.com:443",
+ "span.type": "resource",
+ "id": ">sjrtp2-cdn.marketo.com:443"
+ },
+ {
+ "label": "sjrtp2.marketo.com:443",
+ "span.subtype": "http",
+ "span.destination.service.resource": "sjrtp2.marketo.com:443",
+ "span.type": "external",
+ "id": ">sjrtp2.marketo.com:443"
+ },
+ {
+ "label": "snap.licdn.com:443",
+ "span.subtype": "script",
+ "span.destination.service.resource": "snap.licdn.com:443",
+ "span.type": "resource",
+ "id": ">snap.licdn.com:443"
+ },
+ {
+ "label": "speakerdeck.com:443",
+ "span.subtype": "iframe",
+ "span.destination.service.resource": "speakerdeck.com:443",
+ "span.type": "resource",
+ "id": ">speakerdeck.com:443"
+ },
+ {
+ "label": "stag-static-www.elastic.co:443",
+ "span.subtype": "img",
+ "span.destination.service.resource": "stag-static-www.elastic.co:443",
+ "span.type": "resource",
+ "id": ">stag-static-www.elastic.co:443"
+ },
+ {
+ "label": "static-www.elastic.co:443",
+ "span.subtype": "css",
+ "span.destination.service.resource": "static-www.elastic.co:443",
+ "span.type": "resource",
+ "id": ">static-www.elastic.co:443"
+ },
+ {
+ "label": "stats.g.doubleclick.net:443",
+ "span.subtype": "http",
+ "span.destination.service.resource": "stats.g.doubleclick.net:443",
+ "span.type": "external",
+ "id": ">stats.g.doubleclick.net:443"
+ },
+ {
+ "label": "translate.google.com:443",
+ "span.subtype": "img",
+ "span.destination.service.resource": "translate.google.com:443",
+ "span.type": "resource",
+ "id": ">translate.google.com:443"
+ },
+ {
+ "label": "translate.googleapis.com:443",
+ "span.subtype": "link",
+ "span.destination.service.resource": "translate.googleapis.com:443",
+ "span.type": "resource",
+ "id": ">translate.googleapis.com:443"
+ },
+ {
+ "label": "use.typekit.net:443",
+ "span.subtype": "link",
+ "span.destination.service.resource": "use.typekit.net:443",
+ "span.type": "resource",
+ "id": ">use.typekit.net:443"
+ },
+ {
+ "label": "www.elastic.co:443",
+ "span.subtype": "browser-timing",
+ "span.destination.service.resource": "www.elastic.co:443",
+ "span.type": "external",
+ "id": ">www.elastic.co:443"
+ },
+ {
+ "label": "www.facebook.com:443",
+ "span.subtype": "beacon",
+ "span.destination.service.resource": "www.facebook.com:443",
+ "span.type": "resource",
+ "id": ">www.facebook.com:443"
+ },
+ {
+ "label": "www.google-analytics.com:443",
+ "span.subtype": "beacon",
+ "span.destination.service.resource": "www.google-analytics.com:443",
+ "span.type": "external",
+ "id": ">www.google-analytics.com:443"
+ },
+ {
+ "label": "www.google.ae:443",
+ "span.subtype": "img",
+ "span.destination.service.resource": "www.google.ae:443",
+ "span.type": "resource",
+ "id": ">www.google.ae:443"
+ },
+ {
+ "label": "www.google.al:443",
+ "span.subtype": "img",
+ "span.destination.service.resource": "www.google.al:443",
+ "span.type": "resource",
+ "id": ">www.google.al:443"
+ },
+ {
+ "label": "www.google.at:443",
+ "span.subtype": "img",
+ "span.destination.service.resource": "www.google.at:443",
+ "span.type": "resource",
+ "id": ">www.google.at:443"
+ },
+ {
+ "label": "www.google.ba:443",
+ "span.subtype": "img",
+ "span.destination.service.resource": "www.google.ba:443",
+ "span.type": "resource",
+ "id": ">www.google.ba:443"
+ },
+ {
+ "label": "www.google.be:443",
+ "span.subtype": "img",
+ "span.destination.service.resource": "www.google.be:443",
+ "span.type": "resource",
+ "id": ">www.google.be:443"
+ },
+ {
+ "label": "www.google.bg:443",
+ "span.subtype": "img",
+ "span.destination.service.resource": "www.google.bg:443",
+ "span.type": "resource",
+ "id": ">www.google.bg:443"
+ },
+ {
+ "label": "www.google.by:443",
+ "span.subtype": "img",
+ "span.destination.service.resource": "www.google.by:443",
+ "span.type": "resource",
+ "id": ">www.google.by:443"
+ },
+ {
+ "label": "www.google.ca:443",
+ "span.subtype": "img",
+ "span.destination.service.resource": "www.google.ca:443",
+ "span.type": "resource",
+ "id": ">www.google.ca:443"
+ },
+ {
+ "label": "www.google.ch:443",
+ "span.subtype": "img",
+ "span.destination.service.resource": "www.google.ch:443",
+ "span.type": "resource",
+ "id": ">www.google.ch:443"
+ },
+ {
+ "label": "www.google.cl:443",
+ "span.subtype": "img",
+ "span.destination.service.resource": "www.google.cl:443",
+ "span.type": "resource",
+ "id": ">www.google.cl:443"
+ },
+ {
+ "label": "www.google.co.cr:443",
+ "span.subtype": "img",
+ "span.destination.service.resource": "www.google.co.cr:443",
+ "span.type": "resource",
+ "id": ">www.google.co.cr:443"
+ },
+ {
+ "label": "www.google.co.id:443",
+ "span.subtype": "img",
+ "span.destination.service.resource": "www.google.co.id:443",
+ "span.type": "resource",
+ "id": ">www.google.co.id:443"
+ },
+ {
+ "label": "www.google.co.il:443",
+ "span.subtype": "img",
+ "span.destination.service.resource": "www.google.co.il:443",
+ "span.type": "resource",
+ "id": ">www.google.co.il:443"
+ },
+ {
+ "label": "www.google.co.in:443",
+ "span.subtype": "img",
+ "span.destination.service.resource": "www.google.co.in:443",
+ "span.type": "resource",
+ "id": ">www.google.co.in:443"
+ },
+ {
+ "label": "www.google.co.jp:443",
+ "span.subtype": "img",
+ "span.destination.service.resource": "www.google.co.jp:443",
+ "span.type": "resource",
+ "id": ">www.google.co.jp:443"
+ },
+ {
+ "label": "www.google.co.kr:443",
+ "span.subtype": "img",
+ "span.destination.service.resource": "www.google.co.kr:443",
+ "span.type": "resource",
+ "id": ">www.google.co.kr:443"
+ },
+ {
+ "label": "www.google.co.ma:443",
+ "span.subtype": "img",
+ "span.destination.service.resource": "www.google.co.ma:443",
+ "span.type": "resource",
+ "id": ">www.google.co.ma:443"
+ },
+ {
+ "label": "www.google.co.uk:443",
+ "span.subtype": "img",
+ "span.destination.service.resource": "www.google.co.uk:443",
+ "span.type": "resource",
+ "id": ">www.google.co.uk:443"
+ },
+ {
+ "label": "www.google.co.za:443",
+ "span.subtype": "img",
+ "span.destination.service.resource": "www.google.co.za:443",
+ "span.type": "resource",
+ "id": ">www.google.co.za:443"
+ },
+ {
+ "label": "www.google.com.ar:443",
+ "span.subtype": "img",
+ "span.destination.service.resource": "www.google.com.ar:443",
+ "span.type": "resource",
+ "id": ">www.google.com.ar:443"
+ },
+ {
+ "label": "www.google.com.au:443",
+ "span.subtype": "img",
+ "span.destination.service.resource": "www.google.com.au:443",
+ "span.type": "resource",
+ "id": ">www.google.com.au:443"
+ },
+ {
+ "label": "www.google.com.bo:443",
+ "span.subtype": "img",
+ "span.destination.service.resource": "www.google.com.bo:443",
+ "span.type": "resource",
+ "id": ">www.google.com.bo:443"
+ },
+ {
+ "label": "www.google.com.br:443",
+ "span.subtype": "img",
+ "span.destination.service.resource": "www.google.com.br:443",
+ "span.type": "resource",
+ "id": ">www.google.com.br:443"
+ },
+ {
+ "label": "www.google.com.co:443",
+ "span.subtype": "img",
+ "span.destination.service.resource": "www.google.com.co:443",
+ "span.type": "resource",
+ "id": ">www.google.com.co:443"
+ },
+ {
+ "label": "www.google.com.eg:443",
+ "span.subtype": "img",
+ "span.destination.service.resource": "www.google.com.eg:443",
+ "span.type": "resource",
+ "id": ">www.google.com.eg:443"
+ },
+ {
+ "label": "www.google.com.mm:443",
+ "span.subtype": "img",
+ "span.destination.service.resource": "www.google.com.mm:443",
+ "span.type": "resource",
+ "id": ">www.google.com.mm:443"
+ },
+ {
+ "label": "www.google.com.mx:443",
+ "span.subtype": "img",
+ "span.destination.service.resource": "www.google.com.mx:443",
+ "span.type": "resource",
+ "id": ">www.google.com.mx:443"
+ },
+ {
+ "label": "www.google.com.my:443",
+ "span.subtype": "img",
+ "span.destination.service.resource": "www.google.com.my:443",
+ "span.type": "resource",
+ "id": ">www.google.com.my:443"
+ },
+ {
+ "label": "www.google.com.pe:443",
+ "span.subtype": "img",
+ "span.destination.service.resource": "www.google.com.pe:443",
+ "span.type": "resource",
+ "id": ">www.google.com.pe:443"
+ },
+ {
+ "label": "www.google.com.sa:443",
+ "span.subtype": "img",
+ "span.destination.service.resource": "www.google.com.sa:443",
+ "span.type": "resource",
+ "id": ">www.google.com.sa:443"
+ },
+ {
+ "label": "www.google.com.sg:443",
+ "span.subtype": "img",
+ "span.destination.service.resource": "www.google.com.sg:443",
+ "span.type": "resource",
+ "id": ">www.google.com.sg:443"
+ },
+ {
+ "label": "www.google.com.tr:443",
+ "span.subtype": "img",
+ "span.destination.service.resource": "www.google.com.tr:443",
+ "span.type": "resource",
+ "id": ">www.google.com.tr:443"
+ },
+ {
+ "label": "www.google.com.ua:443",
+ "span.subtype": "img",
+ "span.destination.service.resource": "www.google.com.ua:443",
+ "span.type": "resource",
+ "id": ">www.google.com.ua:443"
+ },
+ {
+ "label": "www.google.com.uy:443",
+ "span.subtype": "img",
+ "span.destination.service.resource": "www.google.com.uy:443",
+ "span.type": "resource",
+ "id": ">www.google.com.uy:443"
+ },
+ {
+ "label": "www.google.com:443",
+ "span.subtype": "beacon",
+ "span.destination.service.resource": "www.google.com:443",
+ "span.type": "resource",
+ "id": ">www.google.com:443"
+ },
+ {
+ "label": "www.google.cz:443",
+ "span.subtype": "img",
+ "span.destination.service.resource": "www.google.cz:443",
+ "span.type": "resource",
+ "id": ">www.google.cz:443"
+ },
+ {
+ "label": "www.google.de:443",
+ "span.subtype": "img",
+ "span.destination.service.resource": "www.google.de:443",
+ "span.type": "resource",
+ "id": ">www.google.de:443"
+ },
+ {
+ "label": "www.google.dk:443",
+ "span.subtype": "img",
+ "span.destination.service.resource": "www.google.dk:443",
+ "span.type": "resource",
+ "id": ">www.google.dk:443"
+ },
+ {
+ "label": "www.google.es:443",
+ "span.subtype": "img",
+ "span.destination.service.resource": "www.google.es:443",
+ "span.type": "resource",
+ "id": ">www.google.es:443"
+ },
+ {
+ "label": "www.google.fr:443",
+ "span.subtype": "img",
+ "span.destination.service.resource": "www.google.fr:443",
+ "span.type": "resource",
+ "id": ">www.google.fr:443"
+ },
+ {
+ "label": "www.google.gr:443",
+ "span.subtype": "img",
+ "span.destination.service.resource": "www.google.gr:443",
+ "span.type": "resource",
+ "id": ">www.google.gr:443"
+ },
+ {
+ "label": "www.google.hu:443",
+ "span.subtype": "img",
+ "span.destination.service.resource": "www.google.hu:443",
+ "span.type": "resource",
+ "id": ">www.google.hu:443"
+ },
+ {
+ "label": "www.google.is:443",
+ "span.subtype": "img",
+ "span.destination.service.resource": "www.google.is:443",
+ "span.type": "resource",
+ "id": ">www.google.is:443"
+ },
+ {
+ "label": "www.google.it:443",
+ "span.subtype": "img",
+ "span.destination.service.resource": "www.google.it:443",
+ "span.type": "resource",
+ "id": ">www.google.it:443"
+ },
+ {
+ "label": "www.google.lk:443",
+ "span.subtype": "img",
+ "span.destination.service.resource": "www.google.lk:443",
+ "span.type": "resource",
+ "id": ">www.google.lk:443"
+ },
+ {
+ "label": "www.google.md:443",
+ "span.subtype": "img",
+ "span.destination.service.resource": "www.google.md:443",
+ "span.type": "resource",
+ "id": ">www.google.md:443"
+ },
+ {
+ "label": "www.google.mk:443",
+ "span.subtype": "img",
+ "span.destination.service.resource": "www.google.mk:443",
+ "span.type": "resource",
+ "id": ">www.google.mk:443"
+ },
+ {
+ "label": "www.google.nl:443",
+ "span.subtype": "img",
+ "span.destination.service.resource": "www.google.nl:443",
+ "span.type": "resource",
+ "id": ">www.google.nl:443"
+ },
+ {
+ "label": "www.google.no:443",
+ "span.subtype": "img",
+ "span.destination.service.resource": "www.google.no:443",
+ "span.type": "resource",
+ "id": ">www.google.no:443"
+ },
+ {
+ "label": "www.google.pl:443",
+ "span.subtype": "img",
+ "span.destination.service.resource": "www.google.pl:443",
+ "span.type": "resource",
+ "id": ">www.google.pl:443"
+ },
+ {
+ "label": "www.google.pt:443",
+ "span.subtype": "img",
+ "span.destination.service.resource": "www.google.pt:443",
+ "span.type": "resource",
+ "id": ">www.google.pt:443"
+ },
+ {
+ "label": "www.google.ro:443",
+ "span.subtype": "img",
+ "span.destination.service.resource": "www.google.ro:443",
+ "span.type": "resource",
+ "id": ">www.google.ro:443"
+ },
+ {
+ "label": "www.google.rs:443",
+ "span.subtype": "img",
+ "span.destination.service.resource": "www.google.rs:443",
+ "span.type": "resource",
+ "id": ">www.google.rs:443"
+ },
+ {
+ "label": "www.google.ru:443",
+ "span.subtype": "img",
+ "span.destination.service.resource": "www.google.ru:443",
+ "span.type": "resource",
+ "id": ">www.google.ru:443"
+ },
+ {
+ "label": "www.google.se:443",
+ "span.subtype": "img",
+ "span.destination.service.resource": "www.google.se:443",
+ "span.type": "resource",
+ "id": ">www.google.se:443"
+ },
+ {
+ "label": "www.google.tn:443",
+ "span.subtype": "img",
+ "span.destination.service.resource": "www.google.tn:443",
+ "span.type": "resource",
+ "id": ">www.google.tn:443"
+ },
+ {
+ "label": "www.googleadservices.com:443",
+ "span.subtype": "script",
+ "span.destination.service.resource": "www.googleadservices.com:443",
+ "span.type": "resource",
+ "id": ">www.googleadservices.com:443"
+ },
+ {
+ "label": "www.googletagmanager.com:443",
+ "span.subtype": "script",
+ "span.destination.service.resource": "www.googletagmanager.com:443",
+ "span.type": "resource",
+ "id": ">www.googletagmanager.com:443"
+ },
+ {
+ "label": "www.gstatic.com:443",
+ "span.subtype": "css",
+ "span.destination.service.resource": "www.gstatic.com:443",
+ "span.type": "resource",
+ "id": ">www.gstatic.com:443"
+ },
+ {
+ "label": "www.iubenda.com:443",
+ "span.subtype": "script",
+ "span.destination.service.resource": "www.iubenda.com:443",
+ "span.type": "resource",
+ "id": ">www.iubenda.com:443"
+ },
+ {
+ "label": "www.slideshare.net:443",
+ "span.subtype": "iframe",
+ "span.destination.service.resource": "www.slideshare.net:443",
+ "span.type": "resource",
+ "id": ">www.slideshare.net:443"
+ },
+ {
+ "label": "www.youtube.com:443",
+ "span.subtype": "iframe",
+ "span.destination.service.resource": "www.youtube.com:443",
+ "span.type": "resource",
+ "id": ">www.youtube.com:443"
+ },
+ {
+ "label": "x.clearbit.com:443",
+ "span.subtype": "http",
+ "span.destination.service.resource": "x.clearbit.com:443",
+ "span.type": "external",
+ "id": ">x.clearbit.com:443"
+ }
+ ]
+}
diff --git a/x-pack/plugins/apm/public/components/app/ServiceMap/__stories__/example_response_one_domain_many_ips.json b/x-pack/plugins/apm/public/components/app/ServiceMap/__stories__/example_response_one_domain_many_ips.json
deleted file mode 100644
index f9b8a273d8577..0000000000000
--- a/x-pack/plugins/apm/public/components/app/ServiceMap/__stories__/example_response_one_domain_many_ips.json
+++ /dev/null
@@ -1,2122 +0,0 @@
-{
- "elements": [
- {
- "data": {
- "source": "artifact_api",
- "target": ">192.0.2.99:80",
- "id": "artifact_api~>192.0.2.99:80",
- "sourceData": {
- "id": "artifact_api",
- "service.environment": "development",
- "service.name": "artifact_api",
- "agent.name": "nodejs",
- "service.framework.name": "express"
- },
- "targetData": {
- "span.subtype": "http",
- "span.destination.service.resource": "192.0.2.99:80",
- "span.type": "external",
- "id": ">192.0.2.99:80",
- "label": ">192.0.2.99:80"
- }
- }
- },
- {
- "data": {
- "source": "artifact_api",
- "target": ">192.0.2.47:443",
- "id": "artifact_api~>192.0.2.47:443",
- "sourceData": {
- "id": "artifact_api",
- "service.environment": "development",
- "service.name": "artifact_api",
- "agent.name": "nodejs",
- "service.framework.name": "express"
- },
- "targetData": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.47:443",
- "span.type": "external",
- "id": ">192.0.2.47:443",
- "label": ">192.0.2.47:443"
- }
- }
- },
- {
- "data": {
- "source": "artifact_api",
- "target": ">192.0.2.13:443",
- "id": "artifact_api~>192.0.2.13:443",
- "sourceData": {
- "id": "artifact_api",
- "service.environment": "development",
- "service.name": "artifact_api",
- "agent.name": "nodejs",
- "service.framework.name": "express"
- },
- "targetData": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.13:443",
- "span.type": "external",
- "id": ">192.0.2.13:443",
- "label": ">192.0.2.13:443"
- }
- }
- },
- {
- "data": {
- "source": "artifact_api",
- "target": ">192.0.2.106:443",
- "id": "artifact_api~>192.0.2.106:443",
- "sourceData": {
- "id": "artifact_api",
- "service.environment": "development",
- "service.name": "artifact_api",
- "agent.name": "nodejs",
- "service.framework.name": "express"
- },
- "targetData": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.106:443",
- "span.type": "external",
- "id": ">192.0.2.106:443",
- "label": ">192.0.2.106:443"
- }
- }
- },
- {
- "data": {
- "source": "artifact_api",
- "target": ">192.0.2.83:443",
- "id": "artifact_api~>192.0.2.83:443",
- "sourceData": {
- "id": "artifact_api",
- "service.environment": "development",
- "service.name": "artifact_api",
- "agent.name": "nodejs",
- "service.framework.name": "express"
- },
- "targetData": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.83:443",
- "span.type": "external",
- "id": ">192.0.2.83:443",
- "label": ">192.0.2.83:443"
- }
- }
- },
- {
- "data": {
- "source": "artifact_api",
- "target": ">192.0.2.111:443",
- "id": "artifact_api~>192.0.2.111:443",
- "sourceData": {
- "id": "artifact_api",
- "service.environment": "development",
- "service.name": "artifact_api",
- "agent.name": "nodejs",
- "service.framework.name": "express"
- },
- "targetData": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.111:443",
- "span.type": "external",
- "id": ">192.0.2.111:443",
- "label": ">192.0.2.111:443"
- }
- }
- },
- {
- "data": {
- "source": "artifact_api",
- "target": ">192.0.2.189:443",
- "id": "artifact_api~>192.0.2.189:443",
- "sourceData": {
- "id": "artifact_api",
- "service.environment": "development",
- "service.name": "artifact_api",
- "agent.name": "nodejs",
- "service.framework.name": "express"
- },
- "targetData": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.189:443",
- "span.type": "external",
- "id": ">192.0.2.189:443",
- "label": ">192.0.2.189:443"
- }
- }
- },
- {
- "data": {
- "source": "artifact_api",
- "target": ">192.0.2.148:443",
- "id": "artifact_api~>192.0.2.148:443",
- "sourceData": {
- "id": "artifact_api",
- "service.environment": "development",
- "service.name": "artifact_api",
- "agent.name": "nodejs",
- "service.framework.name": "express"
- },
- "targetData": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.148:443",
- "span.type": "external",
- "id": ">192.0.2.148:443",
- "label": ">192.0.2.148:443"
- }
- }
- },
- {
- "data": {
- "source": "artifact_api",
- "target": ">192.0.2.39:443",
- "id": "artifact_api~>192.0.2.39:443",
- "sourceData": {
- "id": "artifact_api",
- "service.environment": "development",
- "service.name": "artifact_api",
- "agent.name": "nodejs",
- "service.framework.name": "express"
- },
- "targetData": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.39:443",
- "span.type": "external",
- "id": ">192.0.2.39:443",
- "label": ">192.0.2.39:443"
- }
- }
- },
- {
- "data": {
- "source": "artifact_api",
- "target": ">192.0.2.42:443",
- "id": "artifact_api~>192.0.2.42:443",
- "sourceData": {
- "id": "artifact_api",
- "service.environment": "development",
- "service.name": "artifact_api",
- "agent.name": "nodejs",
- "service.framework.name": "express"
- },
- "targetData": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.42:443",
- "span.type": "external",
- "id": ">192.0.2.42:443",
- "label": ">192.0.2.42:443"
- }
- }
- },
- {
- "data": {
- "source": "artifact_api",
- "target": ">192.0.2.240:443",
- "id": "artifact_api~>192.0.2.240:443",
- "sourceData": {
- "id": "artifact_api",
- "service.environment": "development",
- "service.name": "artifact_api",
- "agent.name": "nodejs",
- "service.framework.name": "express"
- },
- "targetData": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.240:443",
- "span.type": "external",
- "id": ">192.0.2.240:443",
- "label": ">192.0.2.240:443"
- }
- }
- },
- {
- "data": {
- "source": "artifact_api",
- "target": ">192.0.2.156:443",
- "id": "artifact_api~>192.0.2.156:443",
- "sourceData": {
- "id": "artifact_api",
- "service.environment": "development",
- "service.name": "artifact_api",
- "agent.name": "nodejs",
- "service.framework.name": "express"
- },
- "targetData": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.156:443",
- "span.type": "external",
- "id": ">192.0.2.156:443",
- "label": ">192.0.2.156:443"
- }
- }
- },
- {
- "data": {
- "source": "artifact_api",
- "target": ">192.0.2.245:443",
- "id": "artifact_api~>192.0.2.245:443",
- "sourceData": {
- "id": "artifact_api",
- "service.environment": "development",
- "service.name": "artifact_api",
- "agent.name": "nodejs",
- "service.framework.name": "express"
- },
- "targetData": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.245:443",
- "span.type": "external",
- "id": ">192.0.2.245:443",
- "label": ">192.0.2.245:443"
- }
- }
- },
- {
- "data": {
- "source": "artifact_api",
- "target": ">192.0.2.198:443",
- "id": "artifact_api~>192.0.2.198:443",
- "sourceData": {
- "id": "artifact_api",
- "service.environment": "development",
- "service.name": "artifact_api",
- "agent.name": "nodejs",
- "service.framework.name": "express"
- },
- "targetData": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.198:443",
- "span.type": "external",
- "id": ">192.0.2.198:443",
- "label": ">192.0.2.198:443"
- }
- }
- },
- {
- "data": {
- "source": "artifact_api",
- "target": ">192.0.2.77:443",
- "id": "artifact_api~>192.0.2.77:443",
- "sourceData": {
- "id": "artifact_api",
- "service.environment": "development",
- "service.name": "artifact_api",
- "agent.name": "nodejs",
- "service.framework.name": "express"
- },
- "targetData": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.77:443",
- "span.type": "external",
- "id": ">192.0.2.77:443",
- "label": ">192.0.2.77:443"
- }
- }
- },
- {
- "data": {
- "source": "artifact_api",
- "target": ">192.0.2.8:443",
- "id": "artifact_api~>192.0.2.8:443",
- "sourceData": {
- "id": "artifact_api",
- "service.environment": "development",
- "service.name": "artifact_api",
- "agent.name": "nodejs",
- "service.framework.name": "express"
- },
- "targetData": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.8:443",
- "span.type": "external",
- "id": ">192.0.2.8:443",
- "label": ">192.0.2.8:443"
- }
- }
- },
- {
- "data": {
- "source": "artifact_api",
- "target": ">192.0.2.69:443",
- "id": "artifact_api~>192.0.2.69:443",
- "sourceData": {
- "id": "artifact_api",
- "service.environment": "development",
- "service.name": "artifact_api",
- "agent.name": "nodejs",
- "service.framework.name": "express"
- },
- "targetData": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.69:443",
- "span.type": "external",
- "id": ">192.0.2.69:443",
- "label": ">192.0.2.69:443"
- }
- }
- },
- {
- "data": {
- "source": "artifact_api",
- "target": ">192.0.2.5:443",
- "id": "artifact_api~>192.0.2.5:443",
- "sourceData": {
- "id": "artifact_api",
- "service.environment": "development",
- "service.name": "artifact_api",
- "agent.name": "nodejs",
- "service.framework.name": "express"
- },
- "targetData": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.5:443",
- "span.type": "external",
- "id": ">192.0.2.5:443",
- "label": ">192.0.2.5:443"
- }
- }
- },
- {
- "data": {
- "source": "artifact_api",
- "target": ">192.0.2.139:443",
- "id": "artifact_api~>192.0.2.139:443",
- "sourceData": {
- "id": "artifact_api",
- "service.environment": "development",
- "service.name": "artifact_api",
- "agent.name": "nodejs",
- "service.framework.name": "express"
- },
- "targetData": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.139:443",
- "span.type": "external",
- "id": ">192.0.2.139:443",
- "label": ">192.0.2.139:443"
- }
- }
- },
- {
- "data": {
- "source": "artifact_api",
- "target": ">192.0.2.113:443",
- "id": "artifact_api~>192.0.2.113:443",
- "sourceData": {
- "id": "artifact_api",
- "service.environment": "development",
- "service.name": "artifact_api",
- "agent.name": "nodejs",
- "service.framework.name": "express"
- },
- "targetData": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.113:443",
- "span.type": "external",
- "id": ">192.0.2.113:443",
- "label": ">192.0.2.113:443"
- }
- }
- },
- {
- "data": {
- "source": "artifact_api",
- "target": ">192.0.2.2:443",
- "id": "artifact_api~>192.0.2.2:443",
- "sourceData": {
- "id": "artifact_api",
- "service.environment": "development",
- "service.name": "artifact_api",
- "agent.name": "nodejs",
- "service.framework.name": "express"
- },
- "targetData": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.2:443",
- "span.type": "external",
- "id": ">192.0.2.2:443",
- "label": ">192.0.2.2:443"
- }
- }
- },
- {
- "data": {
- "source": "artifact_api",
- "target": ">192.0.2.213:443",
- "id": "artifact_api~>192.0.2.213:443",
- "sourceData": {
- "id": "artifact_api",
- "service.environment": "development",
- "service.name": "artifact_api",
- "agent.name": "nodejs",
- "service.framework.name": "express"
- },
- "targetData": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.213:443",
- "span.type": "external",
- "id": ">192.0.2.213:443",
- "label": ">192.0.2.213:443"
- }
- }
- },
- {
- "data": {
- "source": "artifact_api",
- "target": ">192.0.2.153:443",
- "id": "artifact_api~>192.0.2.153:443",
- "sourceData": {
- "id": "artifact_api",
- "service.environment": "development",
- "service.name": "artifact_api",
- "agent.name": "nodejs",
- "service.framework.name": "express"
- },
- "targetData": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.153:443",
- "span.type": "external",
- "id": ">192.0.2.153:443",
- "label": ">192.0.2.153:443"
- }
- }
- },
- {
- "data": {
- "source": "artifact_api",
- "target": ">192.0.2.36:443",
- "id": "artifact_api~>192.0.2.36:443",
- "sourceData": {
- "id": "artifact_api",
- "service.environment": "development",
- "service.name": "artifact_api",
- "agent.name": "nodejs",
- "service.framework.name": "express"
- },
- "targetData": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.36:443",
- "span.type": "external",
- "id": ">192.0.2.36:443",
- "label": ">192.0.2.36:443"
- }
- }
- },
- {
- "data": {
- "source": "artifact_api",
- "target": ">192.0.2.164:443",
- "id": "artifact_api~>192.0.2.164:443",
- "sourceData": {
- "id": "artifact_api",
- "service.environment": "development",
- "service.name": "artifact_api",
- "agent.name": "nodejs",
- "service.framework.name": "express"
- },
- "targetData": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.164:443",
- "span.type": "external",
- "id": ">192.0.2.164:443",
- "label": ">192.0.2.164:443"
- }
- }
- },
- {
- "data": {
- "source": "artifact_api",
- "target": ">192.0.2.190:443",
- "id": "artifact_api~>192.0.2.190:443",
- "sourceData": {
- "id": "artifact_api",
- "service.environment": "development",
- "service.name": "artifact_api",
- "agent.name": "nodejs",
- "service.framework.name": "express"
- },
- "targetData": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.190:443",
- "span.type": "external",
- "id": ">192.0.2.190:443",
- "label": ">192.0.2.190:443"
- }
- }
- },
- {
- "data": {
- "source": "artifact_api",
- "target": ">192.0.2.9:443",
- "id": "artifact_api~>192.0.2.9:443",
- "sourceData": {
- "id": "artifact_api",
- "service.environment": "development",
- "service.name": "artifact_api",
- "agent.name": "nodejs",
- "service.framework.name": "express"
- },
- "targetData": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.9:443",
- "span.type": "external",
- "id": ">192.0.2.9:443",
- "label": ">192.0.2.9:443"
- }
- }
- },
- {
- "data": {
- "source": "artifact_api",
- "target": ">192.0.2.210:443",
- "id": "artifact_api~>192.0.2.210:443",
- "sourceData": {
- "id": "artifact_api",
- "service.environment": "development",
- "service.name": "artifact_api",
- "agent.name": "nodejs",
- "service.framework.name": "express"
- },
- "targetData": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.210:443",
- "span.type": "external",
- "id": ">192.0.2.210:443",
- "label": ">192.0.2.210:443"
- }
- }
- },
- {
- "data": {
- "source": "artifact_api",
- "target": ">192.0.2.21:443",
- "id": "artifact_api~>192.0.2.21:443",
- "sourceData": {
- "id": "artifact_api",
- "service.environment": "development",
- "service.name": "artifact_api",
- "agent.name": "nodejs",
- "service.framework.name": "express"
- },
- "targetData": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.21:443",
- "span.type": "external",
- "id": ">192.0.2.21:443",
- "label": ">192.0.2.21:443"
- }
- }
- },
- {
- "data": {
- "source": "artifact_api",
- "target": ">192.0.2.176:443",
- "id": "artifact_api~>192.0.2.176:443",
- "sourceData": {
- "id": "artifact_api",
- "service.environment": "development",
- "service.name": "artifact_api",
- "agent.name": "nodejs",
- "service.framework.name": "express"
- },
- "targetData": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.176:443",
- "span.type": "external",
- "id": ">192.0.2.176:443",
- "label": ">192.0.2.176:443"
- }
- }
- },
- {
- "data": {
- "source": "artifact_api",
- "target": ">192.0.2.81:443",
- "id": "artifact_api~>192.0.2.81:443",
- "sourceData": {
- "id": "artifact_api",
- "service.environment": "development",
- "service.name": "artifact_api",
- "agent.name": "nodejs",
- "service.framework.name": "express"
- },
- "targetData": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.81:443",
- "span.type": "external",
- "id": ">192.0.2.81:443",
- "label": ">192.0.2.81:443"
- }
- }
- },
- {
- "data": {
- "source": "artifact_api",
- "target": ">192.0.2.118:443",
- "id": "artifact_api~>192.0.2.118:443",
- "sourceData": {
- "id": "artifact_api",
- "service.environment": "development",
- "service.name": "artifact_api",
- "agent.name": "nodejs",
- "service.framework.name": "express"
- },
- "targetData": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.118:443",
- "span.type": "external",
- "id": ">192.0.2.118:443",
- "label": ">192.0.2.118:443"
- }
- }
- },
- {
- "data": {
- "source": "artifact_api",
- "target": ">192.0.2.103:443",
- "id": "artifact_api~>192.0.2.103:443",
- "sourceData": {
- "id": "artifact_api",
- "service.environment": "development",
- "service.name": "artifact_api",
- "agent.name": "nodejs",
- "service.framework.name": "express"
- },
- "targetData": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.103:443",
- "span.type": "external",
- "id": ">192.0.2.103:443",
- "label": ">192.0.2.103:443"
- }
- }
- },
- {
- "data": {
- "source": "artifact_api",
- "target": ">192.0.2.3:443",
- "id": "artifact_api~>192.0.2.3:443",
- "sourceData": {
- "id": "artifact_api",
- "service.environment": "development",
- "service.name": "artifact_api",
- "agent.name": "nodejs",
- "service.framework.name": "express"
- },
- "targetData": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.3:443",
- "span.type": "external",
- "id": ">192.0.2.3:443",
- "label": ">192.0.2.3:443"
- }
- }
- },
- {
- "data": {
- "source": "artifact_api",
- "target": ">192.0.2.135:443",
- "id": "artifact_api~>192.0.2.135:443",
- "sourceData": {
- "id": "artifact_api",
- "service.environment": "development",
- "service.name": "artifact_api",
- "agent.name": "nodejs",
- "service.framework.name": "express"
- },
- "targetData": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.135:443",
- "span.type": "external",
- "id": ">192.0.2.135:443",
- "label": ">192.0.2.135:443"
- }
- }
- },
- {
- "data": {
- "source": "artifact_api",
- "target": ">192.0.2.26:443",
- "id": "artifact_api~>192.0.2.26:443",
- "sourceData": {
- "id": "artifact_api",
- "service.environment": "development",
- "service.name": "artifact_api",
- "agent.name": "nodejs",
- "service.framework.name": "express"
- },
- "targetData": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.26:443",
- "span.type": "external",
- "id": ">192.0.2.26:443",
- "label": ">192.0.2.26:443"
- }
- }
- },
- {
- "data": {
- "source": "artifact_api",
- "target": ">192.0.2.185:443",
- "id": "artifact_api~>192.0.2.185:443",
- "sourceData": {
- "id": "artifact_api",
- "service.environment": "development",
- "service.name": "artifact_api",
- "agent.name": "nodejs",
- "service.framework.name": "express"
- },
- "targetData": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.185:443",
- "span.type": "external",
- "id": ">192.0.2.185:443",
- "label": ">192.0.2.185:443"
- }
- }
- },
- {
- "data": {
- "source": "artifact_api",
- "target": ">192.0.2.173:443",
- "id": "artifact_api~>192.0.2.173:443",
- "sourceData": {
- "id": "artifact_api",
- "service.environment": "development",
- "service.name": "artifact_api",
- "agent.name": "nodejs",
- "service.framework.name": "express"
- },
- "targetData": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.173:443",
- "span.type": "external",
- "id": ">192.0.2.173:443",
- "label": ">192.0.2.173:443"
- }
- }
- },
- {
- "data": {
- "source": "artifact_api",
- "target": ">192.0.2.45:443",
- "id": "artifact_api~>192.0.2.45:443",
- "sourceData": {
- "id": "artifact_api",
- "service.environment": "development",
- "service.name": "artifact_api",
- "agent.name": "nodejs",
- "service.framework.name": "express"
- },
- "targetData": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.45:443",
- "span.type": "external",
- "id": ">192.0.2.45:443",
- "label": ">192.0.2.45:443"
- }
- }
- },
- {
- "data": {
- "source": "artifact_api",
- "target": ">192.0.2.144:443",
- "id": "artifact_api~>192.0.2.144:443",
- "sourceData": {
- "id": "artifact_api",
- "service.environment": "development",
- "service.name": "artifact_api",
- "agent.name": "nodejs",
- "service.framework.name": "express"
- },
- "targetData": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.144:443",
- "span.type": "external",
- "id": ">192.0.2.144:443",
- "label": ">192.0.2.144:443"
- }
- }
- },
- {
- "data": {
- "source": "artifact_api",
- "target": ">192.0.2.165:443",
- "id": "artifact_api~>192.0.2.165:443",
- "sourceData": {
- "id": "artifact_api",
- "service.environment": "development",
- "service.name": "artifact_api",
- "agent.name": "nodejs",
- "service.framework.name": "express"
- },
- "targetData": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.165:443",
- "span.type": "external",
- "id": ">192.0.2.165:443",
- "label": ">192.0.2.165:443"
- }
- }
- },
- {
- "data": {
- "source": "artifact_api",
- "target": ">192.0.2.119:443",
- "id": "artifact_api~>192.0.2.119:443",
- "sourceData": {
- "id": "artifact_api",
- "service.environment": "development",
- "service.name": "artifact_api",
- "agent.name": "nodejs",
- "service.framework.name": "express"
- },
- "targetData": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.119:443",
- "span.type": "external",
- "id": ">192.0.2.119:443",
- "label": ">192.0.2.119:443"
- }
- }
- },
- {
- "data": {
- "source": "artifact_api",
- "target": ">192.0.2.186:443",
- "id": "artifact_api~>192.0.2.186:443",
- "sourceData": {
- "id": "artifact_api",
- "service.environment": "development",
- "service.name": "artifact_api",
- "agent.name": "nodejs",
- "service.framework.name": "express"
- },
- "targetData": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.186:443",
- "span.type": "external",
- "id": ">192.0.2.186:443",
- "label": ">192.0.2.186:443"
- }
- }
- },
- {
- "data": {
- "source": "artifact_api",
- "target": ">192.0.2.54:443",
- "id": "artifact_api~>192.0.2.54:443",
- "sourceData": {
- "id": "artifact_api",
- "service.environment": "development",
- "service.name": "artifact_api",
- "agent.name": "nodejs",
- "service.framework.name": "express"
- },
- "targetData": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.54:443",
- "span.type": "external",
- "id": ">192.0.2.54:443",
- "label": ">192.0.2.54:443"
- }
- }
- },
- {
- "data": {
- "source": "artifact_api",
- "target": ">192.0.2.23:443",
- "id": "artifact_api~>192.0.2.23:443",
- "sourceData": {
- "id": "artifact_api",
- "service.environment": "development",
- "service.name": "artifact_api",
- "agent.name": "nodejs",
- "service.framework.name": "express"
- },
- "targetData": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.23:443",
- "span.type": "external",
- "id": ">192.0.2.23:443",
- "label": ">192.0.2.23:443"
- }
- }
- },
- {
- "data": {
- "source": "artifact_api",
- "target": ">192.0.2.34:443",
- "id": "artifact_api~>192.0.2.34:443",
- "sourceData": {
- "id": "artifact_api",
- "service.environment": "development",
- "service.name": "artifact_api",
- "agent.name": "nodejs",
- "service.framework.name": "express"
- },
- "targetData": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.34:443",
- "span.type": "external",
- "id": ">192.0.2.34:443",
- "label": ">192.0.2.34:443"
- }
- }
- },
- {
- "data": {
- "source": "artifact_api",
- "target": ">192.0.2.169:443",
- "id": "artifact_api~>192.0.2.169:443",
- "sourceData": {
- "id": "artifact_api",
- "service.environment": "development",
- "service.name": "artifact_api",
- "agent.name": "nodejs",
- "service.framework.name": "express"
- },
- "targetData": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.169:443",
- "span.type": "external",
- "id": ">192.0.2.169:443",
- "label": ">192.0.2.169:443"
- }
- }
- },
- {
- "data": {
- "source": "artifact_api",
- "target": ">192.0.2.226:443",
- "id": "artifact_api~>192.0.2.226:443",
- "sourceData": {
- "id": "artifact_api",
- "service.environment": "development",
- "service.name": "artifact_api",
- "agent.name": "nodejs",
- "service.framework.name": "express"
- },
- "targetData": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.226:443",
- "span.type": "external",
- "id": ">192.0.2.226:443",
- "label": ">192.0.2.226:443"
- }
- }
- },
- {
- "data": {
- "source": "artifact_api",
- "target": ">192.0.2.82:443",
- "id": "artifact_api~>192.0.2.82:443",
- "sourceData": {
- "id": "artifact_api",
- "service.environment": "development",
- "service.name": "artifact_api",
- "agent.name": "nodejs",
- "service.framework.name": "express"
- },
- "targetData": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.82:443",
- "span.type": "external",
- "id": ">192.0.2.82:443",
- "label": ">192.0.2.82:443"
- }
- }
- },
- {
- "data": {
- "source": "artifact_api",
- "target": ">192.0.2.132:443",
- "id": "artifact_api~>192.0.2.132:443",
- "sourceData": {
- "id": "artifact_api",
- "service.environment": "development",
- "service.name": "artifact_api",
- "agent.name": "nodejs",
- "service.framework.name": "express"
- },
- "targetData": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.132:443",
- "span.type": "external",
- "id": ">192.0.2.132:443",
- "label": ">192.0.2.132:443"
- }
- }
- },
- {
- "data": {
- "source": "artifact_api",
- "target": ">192.0.2.78:443",
- "id": "artifact_api~>192.0.2.78:443",
- "sourceData": {
- "id": "artifact_api",
- "service.environment": "development",
- "service.name": "artifact_api",
- "agent.name": "nodejs",
- "service.framework.name": "express"
- },
- "targetData": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.78:443",
- "span.type": "external",
- "id": ">192.0.2.78:443",
- "label": ">192.0.2.78:443"
- }
- }
- },
- {
- "data": {
- "source": "artifact_api",
- "target": ">192.0.2.71:443",
- "id": "artifact_api~>192.0.2.71:443",
- "sourceData": {
- "id": "artifact_api",
- "service.environment": "development",
- "service.name": "artifact_api",
- "agent.name": "nodejs",
- "service.framework.name": "express"
- },
- "targetData": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.71:443",
- "span.type": "external",
- "id": ">192.0.2.71:443",
- "label": ">192.0.2.71:443"
- }
- }
- },
- {
- "data": {
- "source": "artifact_api",
- "target": ">192.0.2.48:443",
- "id": "artifact_api~>192.0.2.48:443",
- "sourceData": {
- "id": "artifact_api",
- "service.environment": "development",
- "service.name": "artifact_api",
- "agent.name": "nodejs",
- "service.framework.name": "express"
- },
- "targetData": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.48:443",
- "span.type": "external",
- "id": ">192.0.2.48:443",
- "label": ">192.0.2.48:443"
- }
- }
- },
- {
- "data": {
- "source": "artifact_api",
- "target": ">192.0.2.107:443",
- "id": "artifact_api~>192.0.2.107:443",
- "sourceData": {
- "id": "artifact_api",
- "service.environment": "development",
- "service.name": "artifact_api",
- "agent.name": "nodejs",
- "service.framework.name": "express"
- },
- "targetData": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.107:443",
- "span.type": "external",
- "id": ">192.0.2.107:443",
- "label": ">192.0.2.107:443"
- }
- }
- },
- {
- "data": {
- "source": "artifact_api",
- "target": ">192.0.2.239:443",
- "id": "artifact_api~>192.0.2.239:443",
- "sourceData": {
- "id": "artifact_api",
- "service.environment": "development",
- "service.name": "artifact_api",
- "agent.name": "nodejs",
- "service.framework.name": "express"
- },
- "targetData": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.239:443",
- "span.type": "external",
- "id": ">192.0.2.239:443",
- "label": ">192.0.2.239:443"
- }
- }
- },
- {
- "data": {
- "source": "artifact_api",
- "target": ">192.0.2.209:443",
- "id": "artifact_api~>192.0.2.209:443",
- "sourceData": {
- "id": "artifact_api",
- "service.environment": "development",
- "service.name": "artifact_api",
- "agent.name": "nodejs",
- "service.framework.name": "express"
- },
- "targetData": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.209:443",
- "span.type": "external",
- "id": ">192.0.2.209:443",
- "label": ">192.0.2.209:443"
- }
- }
- },
- {
- "data": {
- "source": "artifact_api",
- "target": ">192.0.2.248:443",
- "id": "artifact_api~>192.0.2.248:443",
- "sourceData": {
- "id": "artifact_api",
- "service.environment": "development",
- "service.name": "artifact_api",
- "agent.name": "nodejs",
- "service.framework.name": "express"
- },
- "targetData": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.248:443",
- "span.type": "external",
- "id": ">192.0.2.248:443",
- "label": ">192.0.2.248:443"
- }
- }
- },
- {
- "data": {
- "source": "artifact_api",
- "target": ">192.0.2.18:443",
- "id": "artifact_api~>192.0.2.18:443",
- "sourceData": {
- "id": "artifact_api",
- "service.environment": "development",
- "service.name": "artifact_api",
- "agent.name": "nodejs",
- "service.framework.name": "express"
- },
- "targetData": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.18:443",
- "span.type": "external",
- "id": ">192.0.2.18:443",
- "label": ">192.0.2.18:443"
- }
- }
- },
- {
- "data": {
- "source": "artifact_api",
- "target": ">192.0.2.228:443",
- "id": "artifact_api~>192.0.2.228:443",
- "sourceData": {
- "id": "artifact_api",
- "service.environment": "development",
- "service.name": "artifact_api",
- "agent.name": "nodejs",
- "service.framework.name": "express"
- },
- "targetData": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.228:443",
- "span.type": "external",
- "id": ">192.0.2.228:443",
- "label": ">192.0.2.228:443"
- }
- }
- },
- {
- "data": {
- "source": "artifact_api",
- "target": ">192.0.2.145:443",
- "id": "artifact_api~>192.0.2.145:443",
- "sourceData": {
- "id": "artifact_api",
- "service.environment": "development",
- "service.name": "artifact_api",
- "agent.name": "nodejs",
- "service.framework.name": "express"
- },
- "targetData": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.145:443",
- "span.type": "external",
- "id": ">192.0.2.145:443",
- "label": ">192.0.2.145:443"
- }
- }
- },
- {
- "data": {
- "source": "artifact_api",
- "target": ">192.0.2.25:443",
- "id": "artifact_api~>192.0.2.25:443",
- "sourceData": {
- "id": "artifact_api",
- "service.environment": "development",
- "service.name": "artifact_api",
- "agent.name": "nodejs",
- "service.framework.name": "express"
- },
- "targetData": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.25:443",
- "span.type": "external",
- "id": ">192.0.2.25:443",
- "label": ">192.0.2.25:443"
- }
- }
- },
- {
- "data": {
- "source": "artifact_api",
- "target": ">192.0.2.162:443",
- "id": "artifact_api~>192.0.2.162:443",
- "sourceData": {
- "id": "artifact_api",
- "service.environment": "development",
- "service.name": "artifact_api",
- "agent.name": "nodejs",
- "service.framework.name": "express"
- },
- "targetData": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.162:443",
- "span.type": "external",
- "id": ">192.0.2.162:443",
- "label": ">192.0.2.162:443"
- }
- }
- },
- {
- "data": {
- "source": "artifact_api",
- "target": ">192.0.2.202:443",
- "id": "artifact_api~>192.0.2.202:443",
- "sourceData": {
- "id": "artifact_api",
- "service.environment": "development",
- "service.name": "artifact_api",
- "agent.name": "nodejs",
- "service.framework.name": "express"
- },
- "targetData": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.202:443",
- "span.type": "external",
- "id": ">192.0.2.202:443",
- "label": ">192.0.2.202:443"
- }
- }
- },
- {
- "data": {
- "source": "artifact_api",
- "target": ">192.0.2.60:443",
- "id": "artifact_api~>192.0.2.60:443",
- "sourceData": {
- "id": "artifact_api",
- "service.environment": "development",
- "service.name": "artifact_api",
- "agent.name": "nodejs",
- "service.framework.name": "express"
- },
- "targetData": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.60:443",
- "span.type": "external",
- "id": ">192.0.2.60:443",
- "label": ">192.0.2.60:443"
- }
- }
- },
- {
- "data": {
- "source": "artifact_api",
- "target": ">192.0.2.59:443",
- "id": "artifact_api~>192.0.2.59:443",
- "sourceData": {
- "id": "artifact_api",
- "service.environment": "development",
- "service.name": "artifact_api",
- "agent.name": "nodejs",
- "service.framework.name": "express"
- },
- "targetData": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.59:443",
- "span.type": "external",
- "id": ">192.0.2.59:443",
- "label": ">192.0.2.59:443"
- }
- }
- },
- {
- "data": {
- "source": "artifact_api",
- "target": ">192.0.2.114:443",
- "id": "artifact_api~>192.0.2.114:443",
- "sourceData": {
- "id": "artifact_api",
- "service.environment": "development",
- "service.name": "artifact_api",
- "agent.name": "nodejs",
- "service.framework.name": "express"
- },
- "targetData": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.114:443",
- "span.type": "external",
- "id": ">192.0.2.114:443",
- "label": ">192.0.2.114:443"
- }
- }
- },
- {
- "data": {
- "source": "artifact_api",
- "target": ">192.0.2.215:443",
- "id": "artifact_api~>192.0.2.215:443",
- "sourceData": {
- "id": "artifact_api",
- "service.environment": "development",
- "service.name": "artifact_api",
- "agent.name": "nodejs",
- "service.framework.name": "express"
- },
- "targetData": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.215:443",
- "span.type": "external",
- "id": ">192.0.2.215:443",
- "label": ">192.0.2.215:443"
- }
- }
- },
- {
- "data": {
- "source": "artifact_api",
- "target": ">192.0.2.238:443",
- "id": "artifact_api~>192.0.2.238:443",
- "sourceData": {
- "id": "artifact_api",
- "service.environment": "development",
- "service.name": "artifact_api",
- "agent.name": "nodejs",
- "service.framework.name": "express"
- },
- "targetData": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.238:443",
- "span.type": "external",
- "id": ">192.0.2.238:443",
- "label": ">192.0.2.238:443"
- }
- }
- },
- {
- "data": {
- "source": "artifact_api",
- "target": ">192.0.2.160:443",
- "id": "artifact_api~>192.0.2.160:443",
- "sourceData": {
- "id": "artifact_api",
- "service.environment": "development",
- "service.name": "artifact_api",
- "agent.name": "nodejs",
- "service.framework.name": "express"
- },
- "targetData": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.160:443",
- "span.type": "external",
- "id": ">192.0.2.160:443",
- "label": ">192.0.2.160:443"
- }
- }
- },
- {
- "data": {
- "source": "artifact_api",
- "target": ">192.0.2.70:443",
- "id": "artifact_api~>192.0.2.70:443",
- "sourceData": {
- "id": "artifact_api",
- "service.environment": "development",
- "service.name": "artifact_api",
- "agent.name": "nodejs",
- "service.framework.name": "express"
- },
- "targetData": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.70:443",
- "span.type": "external",
- "id": ">192.0.2.70:443",
- "label": ">192.0.2.70:443"
- }
- }
- },
- {
- "data": {
- "id": "artifact_api",
- "service.environment": "development",
- "service.name": "artifact_api",
- "agent.name": "nodejs",
- "service.framework.name": "express"
- }
- },
- {
- "data": {
- "span.subtype": "http",
- "span.destination.service.resource": "192.0.2.99:80",
- "span.type": "external",
- "id": ">192.0.2.99:80",
- "label": ">192.0.2.99:80"
- }
- },
- {
- "data": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.186:443",
- "span.type": "external",
- "id": ">192.0.2.186:443",
- "label": ">192.0.2.186:443"
- }
- },
- {
- "data": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.78:443",
- "span.type": "external",
- "id": ">192.0.2.78:443",
- "label": ">192.0.2.78:443"
- }
- },
- {
- "data": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.226:443",
- "span.type": "external",
- "id": ">192.0.2.226:443",
- "label": ">192.0.2.226:443"
- }
- },
- {
- "data": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.245:443",
- "span.type": "external",
- "id": ">192.0.2.245:443",
- "label": ">192.0.2.245:443"
- }
- },
- {
- "data": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.77:443",
- "span.type": "external",
- "id": ">192.0.2.77:443",
- "label": ">192.0.2.77:443"
- }
- },
- {
- "data": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.2:443",
- "span.type": "external",
- "id": ">192.0.2.2:443",
- "label": ">192.0.2.2:443"
- }
- },
- {
- "data": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.198:443",
- "span.type": "external",
- "id": ">192.0.2.198:443",
- "label": ">192.0.2.198:443"
- }
- },
- {
- "data": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.113:443",
- "span.type": "external",
- "id": ">192.0.2.113:443",
- "label": ">192.0.2.113:443"
- }
- },
- {
- "data": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.39:443",
- "span.type": "external",
- "id": ">192.0.2.39:443",
- "label": ">192.0.2.39:443"
- }
- },
- {
- "data": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.83:443",
- "span.type": "external",
- "id": ">192.0.2.83:443",
- "label": ">192.0.2.83:443"
- }
- },
- {
- "data": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.5:443",
- "span.type": "external",
- "id": ">192.0.2.5:443",
- "label": ">192.0.2.5:443"
- }
- },
- {
- "data": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.165:443",
- "span.type": "external",
- "id": ">192.0.2.165:443",
- "label": ">192.0.2.165:443"
- }
- },
- {
- "data": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.156:443",
- "span.type": "external",
- "id": ">192.0.2.156:443",
- "label": ">192.0.2.156:443"
- }
- },
- {
- "data": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.132:443",
- "span.type": "external",
- "id": ">192.0.2.132:443",
- "label": ">192.0.2.132:443"
- }
- },
- {
- "data": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.240:443",
- "span.type": "external",
- "id": ">192.0.2.240:443",
- "label": ">192.0.2.240:443"
- }
- },
- {
- "data": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.54:443",
- "span.type": "external",
- "id": ">192.0.2.54:443",
- "label": ">192.0.2.54:443"
- }
- },
- {
- "data": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.213:443",
- "span.type": "external",
- "id": ">192.0.2.213:443",
- "label": ">192.0.2.213:443"
- }
- },
- {
- "data": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.81:443",
- "span.type": "external",
- "id": ">192.0.2.81:443",
- "label": ">192.0.2.81:443"
- }
- },
- {
- "data": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.176:443",
- "span.type": "external",
- "id": ">192.0.2.176:443",
- "label": ">192.0.2.176:443"
- }
- },
- {
- "data": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.82:443",
- "span.type": "external",
- "id": ">192.0.2.82:443",
- "label": ">192.0.2.82:443"
- }
- },
- {
- "data": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.23:443",
- "span.type": "external",
- "id": ">192.0.2.23:443",
- "label": ">192.0.2.23:443"
- }
- },
- {
- "data": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.189:443",
- "span.type": "external",
- "id": ">192.0.2.189:443",
- "label": ">192.0.2.189:443"
- }
- },
- {
- "data": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.190:443",
- "span.type": "external",
- "id": ">192.0.2.190:443",
- "label": ">192.0.2.190:443"
- }
- },
- {
- "data": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.119:443",
- "span.type": "external",
- "id": ">192.0.2.119:443",
- "label": ">192.0.2.119:443"
- }
- },
- {
- "data": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.169:443",
- "span.type": "external",
- "id": ">192.0.2.169:443",
- "label": ">192.0.2.169:443"
- }
- },
- {
- "data": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.210:443",
- "span.type": "external",
- "id": ">192.0.2.210:443",
- "label": ">192.0.2.210:443"
- }
- },
- {
- "data": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.148:443",
- "span.type": "external",
- "id": ">192.0.2.148:443",
- "label": ">192.0.2.148:443"
- }
- },
- {
- "data": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.26:443",
- "span.type": "external",
- "id": ">192.0.2.26:443",
- "label": ">192.0.2.26:443"
- }
- },
- {
- "data": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.139:443",
- "span.type": "external",
- "id": ">192.0.2.139:443",
- "label": ">192.0.2.139:443"
- }
- },
- {
- "data": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.111:443",
- "span.type": "external",
- "id": ">192.0.2.111:443",
- "label": ">192.0.2.111:443"
- }
- },
- {
- "data": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.13:443",
- "span.type": "external",
- "id": ">192.0.2.13:443",
- "label": ">192.0.2.13:443"
- }
- },
- {
- "data": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.36:443",
- "span.type": "external",
- "id": ">192.0.2.36:443",
- "label": ">192.0.2.36:443"
- }
- },
- {
- "data": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.69:443",
- "span.type": "external",
- "id": ">192.0.2.69:443",
- "label": ">192.0.2.69:443"
- }
- },
- {
- "data": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.173:443",
- "span.type": "external",
- "id": ">192.0.2.173:443",
- "label": ">192.0.2.173:443"
- }
- },
- {
- "data": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.144:443",
- "span.type": "external",
- "id": ">192.0.2.144:443",
- "label": ">192.0.2.144:443"
- }
- },
- {
- "data": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.135:443",
- "span.type": "external",
- "id": ">192.0.2.135:443",
- "label": ">192.0.2.135:443"
- }
- },
- {
- "data": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.21:443",
- "span.type": "external",
- "id": ">192.0.2.21:443",
- "label": ">192.0.2.21:443"
- }
- },
- {
- "data": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.118:443",
- "span.type": "external",
- "id": ">192.0.2.118:443",
- "label": ">192.0.2.118:443"
- }
- },
- {
- "data": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.42:443",
- "span.type": "external",
- "id": ">192.0.2.42:443",
- "label": ">192.0.2.42:443"
- }
- },
- {
- "data": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.106:443",
- "span.type": "external",
- "id": ">192.0.2.106:443",
- "label": ">192.0.2.106:443"
- }
- },
- {
- "data": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.3:443",
- "span.type": "external",
- "id": ">192.0.2.3:443",
- "label": ">192.0.2.3:443"
- }
- },
- {
- "data": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.34:443",
- "span.type": "external",
- "id": ">192.0.2.34:443",
- "label": ">192.0.2.34:443"
- }
- },
- {
- "data": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.185:443",
- "span.type": "external",
- "id": ">192.0.2.185:443",
- "label": ">192.0.2.185:443"
- }
- },
- {
- "data": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.153:443",
- "span.type": "external",
- "id": ">192.0.2.153:443",
- "label": ">192.0.2.153:443"
- }
- },
- {
- "data": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.9:443",
- "span.type": "external",
- "id": ">192.0.2.9:443",
- "label": ">192.0.2.9:443"
- }
- },
- {
- "data": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.164:443",
- "span.type": "external",
- "id": ">192.0.2.164:443",
- "label": ">192.0.2.164:443"
- }
- },
- {
- "data": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.47:443",
- "span.type": "external",
- "id": ">192.0.2.47:443",
- "label": ">192.0.2.47:443"
- }
- },
- {
- "data": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.45:443",
- "span.type": "external",
- "id": ">192.0.2.45:443",
- "label": ">192.0.2.45:443"
- }
- },
- {
- "data": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.8:443",
- "span.type": "external",
- "id": ">192.0.2.8:443",
- "label": ">192.0.2.8:443"
- }
- },
- {
- "data": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.103:443",
- "span.type": "external",
- "id": ">192.0.2.103:443",
- "label": ">192.0.2.103:443"
- }
- },
- {
- "data": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.60:443",
- "span.type": "external",
- "id": ">192.0.2.60:443",
- "label": ">192.0.2.60:443"
- }
- },
- {
- "data": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.202:443",
- "span.type": "external",
- "id": ">192.0.2.202:443",
- "label": ">192.0.2.202:443"
- }
- },
- {
- "data": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.70:443",
- "span.type": "external",
- "id": ">192.0.2.70:443",
- "label": ">192.0.2.70:443"
- }
- },
- {
- "data": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.114:443",
- "span.type": "external",
- "id": ">192.0.2.114:443",
- "label": ">192.0.2.114:443"
- }
- },
- {
- "data": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.25:443",
- "span.type": "external",
- "id": ">192.0.2.25:443",
- "label": ">192.0.2.25:443"
- }
- },
- {
- "data": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.209:443",
- "span.type": "external",
- "id": ">192.0.2.209:443",
- "label": ">192.0.2.209:443"
- }
- },
- {
- "data": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.248:443",
- "span.type": "external",
- "id": ">192.0.2.248:443",
- "label": ">192.0.2.248:443"
- }
- },
- {
- "data": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.18:443",
- "span.type": "external",
- "id": ">192.0.2.18:443",
- "label": ">192.0.2.18:443"
- }
- },
- {
- "data": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.107:443",
- "span.type": "external",
- "id": ">192.0.2.107:443",
- "label": ">192.0.2.107:443"
- }
- },
- {
- "data": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.160:443",
- "span.type": "external",
- "id": ">192.0.2.160:443",
- "label": ">192.0.2.160:443"
- }
- },
- {
- "data": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.228:443",
- "span.type": "external",
- "id": ">192.0.2.228:443",
- "label": ">192.0.2.228:443"
- }
- },
- {
- "data": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.215:443",
- "span.type": "external",
- "id": ">192.0.2.215:443",
- "label": ">192.0.2.215:443"
- }
- },
- {
- "data": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.162:443",
- "span.type": "external",
- "id": ">192.0.2.162:443",
- "label": ">192.0.2.162:443"
- }
- },
- {
- "data": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.238:443",
- "span.type": "external",
- "id": ">192.0.2.238:443",
- "label": ">192.0.2.238:443"
- }
- },
- {
- "data": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.145:443",
- "span.type": "external",
- "id": ">192.0.2.145:443",
- "label": ">192.0.2.145:443"
- }
- },
- {
- "data": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.239:443",
- "span.type": "external",
- "id": ">192.0.2.239:443",
- "label": ">192.0.2.239:443"
- }
- },
- {
- "data": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.59:443",
- "span.type": "external",
- "id": ">192.0.2.59:443",
- "label": ">192.0.2.59:443"
- }
- },
- {
- "data": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.71:443",
- "span.type": "external",
- "id": ">192.0.2.71:443",
- "label": ">192.0.2.71:443"
- }
- },
- {
- "data": {
- "span.subtype": "https",
- "span.destination.service.resource": "192.0.2.48:443",
- "span.type": "external",
- "id": ">192.0.2.48:443",
- "label": ">192.0.2.48:443"
- }
- },
- {
- "data": {
- "service.name": "graphics-worker",
- "agent.name": "nodejs",
- "service.environment": null,
- "service.framework.name": null,
- "id": "graphics-worker"
- }
- }
- ]
-}
diff --git a/x-pack/plugins/apm/public/components/app/ServiceMap/EmptyBanner.test.tsx b/x-pack/plugins/apm/public/components/app/ServiceMap/empty_banner.test.tsx
similarity index 95%
rename from x-pack/plugins/apm/public/components/app/ServiceMap/EmptyBanner.test.tsx
rename to x-pack/plugins/apm/public/components/app/ServiceMap/empty_banner.test.tsx
index f314fbbb1fba0..ae27d4d3baf75 100644
--- a/x-pack/plugins/apm/public/components/app/ServiceMap/EmptyBanner.test.tsx
+++ b/x-pack/plugins/apm/public/components/app/ServiceMap/empty_banner.test.tsx
@@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
-import { act, wait } from '@testing-library/react';
+import { act, waitFor } from '@testing-library/react';
import cytoscape from 'cytoscape';
import React, { ReactNode } from 'react';
import { MockApmPluginContextWrapper } from '../../../context/ApmPluginContext/MockApmPluginContext';
@@ -60,7 +60,7 @@ describe('EmptyBanner', () => {
await act(async () => {
cy.add({ data: { id: 'test id' } });
- await wait(() => {
+ await waitFor(() => {
expect(component.container.children.length).toBeGreaterThan(0);
});
});
diff --git a/x-pack/plugins/apm/public/components/app/ServiceOverview/__test__/__snapshots__/ServiceOverview.test.tsx.snap b/x-pack/plugins/apm/public/components/app/ServiceOverview/__test__/__snapshots__/service_overview.test.tsx.snap
similarity index 100%
rename from x-pack/plugins/apm/public/components/app/ServiceOverview/__test__/__snapshots__/ServiceOverview.test.tsx.snap
rename to x-pack/plugins/apm/public/components/app/ServiceOverview/__test__/__snapshots__/service_overview.test.tsx.snap
diff --git a/x-pack/plugins/apm/public/components/app/ServiceOverview/__test__/ServiceOverview.test.tsx b/x-pack/plugins/apm/public/components/app/ServiceOverview/__test__/service_overview.test.tsx
similarity index 87%
rename from x-pack/plugins/apm/public/components/app/ServiceOverview/__test__/ServiceOverview.test.tsx
rename to x-pack/plugins/apm/public/components/app/ServiceOverview/__test__/service_overview.test.tsx
index d8c8f25616560..06e9008d5aebe 100644
--- a/x-pack/plugins/apm/public/components/app/ServiceOverview/__test__/ServiceOverview.test.tsx
+++ b/x-pack/plugins/apm/public/components/app/ServiceOverview/__test__/service_overview.test.tsx
@@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
-import { render, wait, waitForElement } from '@testing-library/react';
+import { render, waitFor } from '@testing-library/react';
import { CoreStart } from 'kibana/public';
import { merge } from 'lodash';
import React, { FunctionComponent, ReactChild } from 'react';
@@ -129,11 +129,11 @@ describe('Service Overview -> View', () => {
],
});
- const { container, getByText } = renderServiceOverview();
+ const { container, findByText } = renderServiceOverview();
// wait for requests to be made
- await wait(() => expect(httpGet).toHaveBeenCalledTimes(1));
- await waitForElement(() => getByText('My Python Service'));
+ await waitFor(() => expect(httpGet).toHaveBeenCalledTimes(1));
+ await findByText('My Python Service');
expect(container.querySelectorAll('.euiTableRow')).toMatchSnapshot();
});
@@ -145,16 +145,14 @@ describe('Service Overview -> View', () => {
items: [],
});
- const { container, getByText } = renderServiceOverview();
+ const { container, findByText } = renderServiceOverview();
// wait for requests to be made
- await wait(() => expect(httpGet).toHaveBeenCalledTimes(1));
+ await waitFor(() => expect(httpGet).toHaveBeenCalledTimes(1));
// wait for elements to be rendered
- await waitForElement(() =>
- getByText(
- "Looks like you don't have any APM services installed. Let's add some!"
- )
+ await findByText(
+ "Looks like you don't have any APM services installed. Let's add some!"
);
expect(container.querySelectorAll('.euiTableRow')).toMatchSnapshot();
@@ -167,11 +165,11 @@ describe('Service Overview -> View', () => {
items: [],
});
- const { container, getByText } = renderServiceOverview();
+ const { container, findByText } = renderServiceOverview();
// wait for requests to be made
- await wait(() => expect(httpGet).toHaveBeenCalledTimes(1));
- await waitForElement(() => getByText('No services found'));
+ await waitFor(() => expect(httpGet).toHaveBeenCalledTimes(1));
+ await findByText('No services found');
expect(container.querySelectorAll('.euiTableRow')).toMatchSnapshot();
});
@@ -187,7 +185,7 @@ describe('Service Overview -> View', () => {
renderServiceOverview();
// wait for requests to be made
- await wait(() => expect(httpGet).toHaveBeenCalledTimes(1));
+ await waitFor(() => expect(httpGet).toHaveBeenCalledTimes(1));
expect(addWarning).toHaveBeenLastCalledWith(
expect.objectContaining({
@@ -208,7 +206,7 @@ describe('Service Overview -> View', () => {
renderServiceOverview();
// wait for requests to be made
- await wait(() => expect(httpGet).toHaveBeenCalledTimes(1));
+ await waitFor(() => expect(httpGet).toHaveBeenCalledTimes(1));
expect(addWarning).not.toHaveBeenCalled();
});
@@ -234,7 +232,7 @@ describe('Service Overview -> View', () => {
const { queryByText } = renderServiceOverview();
// wait for requests to be made
- await wait(() => expect(httpGet).toHaveBeenCalledTimes(1));
+ await waitFor(() => expect(httpGet).toHaveBeenCalledTimes(1));
expect(queryByText('Health')).toBeNull();
});
@@ -261,7 +259,7 @@ describe('Service Overview -> View', () => {
const { queryAllByText } = renderServiceOverview();
// wait for requests to be made
- await wait(() => expect(httpGet).toHaveBeenCalledTimes(1));
+ await waitFor(() => expect(httpGet).toHaveBeenCalledTimes(1));
expect(queryAllByText('Health').length).toBeGreaterThan(1);
});
diff --git a/x-pack/plugins/apm/public/components/app/Settings/CustomizeUI/CustomLink/CustomLinkFlyout/LinkPreview.test.tsx b/x-pack/plugins/apm/public/components/app/Settings/CustomizeUI/CustomLink/CustomLinkFlyout/link_preview.test.tsx
similarity index 97%
rename from x-pack/plugins/apm/public/components/app/Settings/CustomizeUI/CustomLink/CustomLinkFlyout/LinkPreview.test.tsx
rename to x-pack/plugins/apm/public/components/app/Settings/CustomizeUI/CustomLink/CustomLinkFlyout/link_preview.test.tsx
index 62aa08c223bde..4ccfc5b3013e9 100644
--- a/x-pack/plugins/apm/public/components/app/Settings/CustomizeUI/CustomLink/CustomLinkFlyout/LinkPreview.test.tsx
+++ b/x-pack/plugins/apm/public/components/app/Settings/CustomizeUI/CustomLink/CustomLinkFlyout/link_preview.test.tsx
@@ -10,7 +10,7 @@ import {
getNodeText,
getByTestId,
act,
- wait,
+ waitFor,
} from '@testing-library/react';
import * as apmApi from '../../../../../../services/rest/createCallApmApi';
@@ -82,7 +82,7 @@ describe('LinkPreview', () => {
filters={[{ key: '', value: '' }]}
/>
);
- await wait(() => expect(callApmApiSpy).toHaveBeenCalled());
+ await waitFor(() => expect(callApmApiSpy).toHaveBeenCalled());
expect(getElementValue(container, 'preview-label')).toEqual('foo');
expect(
(getByTestId(container, 'preview-link') as HTMLAnchorElement).text
diff --git a/x-pack/plugins/apm/public/components/app/Settings/CustomizeUI/CustomLink/index.test.tsx b/x-pack/plugins/apm/public/components/app/Settings/CustomizeUI/CustomLink/index.test.tsx
index 56c420878cdba..fea22e890dc10 100644
--- a/x-pack/plugins/apm/public/components/app/Settings/CustomizeUI/CustomLink/index.test.tsx
+++ b/x-pack/plugins/apm/public/components/app/Settings/CustomizeUI/CustomLink/index.test.tsx
@@ -4,7 +4,12 @@
* you may not use this file except in compliance with the Elastic License.
*/
-import { fireEvent, render, wait, RenderResult } from '@testing-library/react';
+import {
+ fireEvent,
+ render,
+ waitFor,
+ RenderResult,
+} from '@testing-library/react';
import React from 'react';
import { act } from 'react-dom/test-utils';
import * as apmApi from '../../../../../services/rest/createCallApmApi';
@@ -181,7 +186,7 @@ describe('CustomLink', () => {
act(() => {
fireEvent.click(editButtons[0]);
});
- await wait(() =>
+ await waitFor(() =>
expect(component.queryByText('Create link')).toBeInTheDocument()
);
await act(async () => {
diff --git a/x-pack/plugins/apm/public/components/app/TraceLink/__test__/TraceLink.test.tsx b/x-pack/plugins/apm/public/components/app/TraceLink/trace_link.test.tsx
similarity index 83%
rename from x-pack/plugins/apm/public/components/app/TraceLink/__test__/TraceLink.test.tsx
rename to x-pack/plugins/apm/public/components/app/TraceLink/trace_link.test.tsx
index 8d37a8e54d87c..e7c0400290dcb 100644
--- a/x-pack/plugins/apm/public/components/app/TraceLink/__test__/TraceLink.test.tsx
+++ b/x-pack/plugins/apm/public/components/app/TraceLink/trace_link.test.tsx
@@ -3,18 +3,18 @@
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
-import { render } from '@testing-library/react';
+import { act, render, waitFor } from '@testing-library/react';
import { shallow } from 'enzyme';
import React, { ReactNode } from 'react';
import { MemoryRouter, RouteComponentProps } from 'react-router-dom';
-import { TraceLink } from '../';
-import { ApmPluginContextValue } from '../../../../context/ApmPluginContext';
+import { TraceLink } from './';
+import { ApmPluginContextValue } from '../../../context/ApmPluginContext';
import {
mockApmPluginContextValue,
MockApmPluginContextWrapper,
-} from '../../../../context/ApmPluginContext/MockApmPluginContext';
-import * as hooks from '../../../../hooks/useFetcher';
-import * as urlParamsHooks from '../../../../hooks/useUrlParams';
+} from '../../../context/ApmPluginContext/MockApmPluginContext';
+import * as hooks from '../../../hooks/useFetcher';
+import * as urlParamsHooks from '../../../hooks/useUrlParams';
function Wrapper({ children }: { children?: ReactNode }) {
return (
@@ -43,13 +43,18 @@ describe('TraceLink', () => {
jest.clearAllMocks();
});
- it('renders a transition page', () => {
+ it('renders a transition page', async () => {
const props = ({
match: { params: { traceId: 'x' } },
} as unknown) as RouteComponentProps<{ traceId: string }>;
- const component = render(, renderOptions);
+ let result;
+ act(() => {
+ const component = render(, renderOptions);
- expect(component.getByText('Fetching trace...')).toBeDefined();
+ result = component.getByText('Fetching trace...');
+ });
+ await waitFor(() => {});
+ expect(result).toBeDefined();
});
describe('when no transaction is found', () => {
diff --git a/x-pack/plugins/apm/public/components/app/TransactionDetails/WaterfallWithSummmary/WaterfallContainer/WaterfallContainer.stories.tsx b/x-pack/plugins/apm/public/components/app/TransactionDetails/WaterfallWithSummmary/WaterfallContainer/WaterfallContainer.stories.tsx
index 8e3d0effb97a6..e3ba02ce42c2e 100644
--- a/x-pack/plugins/apm/public/components/app/TransactionDetails/WaterfallWithSummmary/WaterfallContainer/WaterfallContainer.stories.tsx
+++ b/x-pack/plugins/apm/public/components/app/TransactionDetails/WaterfallWithSummmary/WaterfallContainer/WaterfallContainer.stories.tsx
@@ -4,102 +4,95 @@
* you may not use this file except in compliance with the Elastic License.
*/
-import React from 'react';
-import { storiesOf } from '@storybook/react';
+import React, { ComponentType } from 'react';
+import { MemoryRouter } from 'react-router-dom';
+import { EuiThemeProvider } from '../../../../../../../observability/public';
// eslint-disable-next-line @kbn/eslint/no-restricted-paths
import { TraceAPIResponse } from '../../../../../../server/lib/traces/get_trace';
+import { MockApmPluginContextWrapper } from '../../../../../context/ApmPluginContext/MockApmPluginContext';
import { WaterfallContainer } from './index';
+import { getWaterfall } from './Waterfall/waterfall_helpers/waterfall_helpers';
import {
+ inferredSpans,
location,
- urlParams,
simpleTrace,
- traceWithErrors,
traceChildStartBeforeParent,
- inferredSpans,
+ traceWithErrors,
+ urlParams,
} from './waterfallContainer.stories.data';
-import { getWaterfall } from './Waterfall/waterfall_helpers/waterfall_helpers';
-import { EuiThemeProvider } from '../../../../../../../observability/public';
-storiesOf('app/TransactionDetails/Waterfall', module)
- .addDecorator((storyFn) => {storyFn()})
- .add(
- 'example',
- () => {
- const waterfall = getWaterfall(
- simpleTrace as TraceAPIResponse,
- '975c8d5bfd1dd20b'
- );
- return (
-
- );
- },
- { info: { propTablesExclude: [EuiThemeProvider], source: false } }
+export default {
+ title: 'app/TransactionDetails/Waterfall',
+ component: WaterfallContainer,
+ decorators: [
+ (Story: ComponentType) => (
+
+
+
+
+
+
+
+ ),
+ ],
+};
+
+export function Example() {
+ const waterfall = getWaterfall(
+ simpleTrace as TraceAPIResponse,
+ '975c8d5bfd1dd20b'
+ );
+ return (
+
);
+}
-storiesOf('app/TransactionDetails/Waterfall', module)
- .addDecorator((storyFn) => {storyFn()})
- .add(
- 'with errors',
- () => {
- const waterfall = getWaterfall(
- (traceWithErrors as unknown) as TraceAPIResponse,
- '975c8d5bfd1dd20b'
- );
- return (
-
- );
- },
- { info: { propTablesExclude: [EuiThemeProvider], source: false } }
+export function WithErrors() {
+ const waterfall = getWaterfall(
+ (traceWithErrors as unknown) as TraceAPIResponse,
+ '975c8d5bfd1dd20b'
);
+ return (
+
+ );
+}
-storiesOf('app/TransactionDetails/Waterfall', module)
- .addDecorator((storyFn) => {storyFn()})
- .add(
- 'child starts before parent',
- () => {
- const waterfall = getWaterfall(
- traceChildStartBeforeParent as TraceAPIResponse,
- '975c8d5bfd1dd20b'
- );
- return (
-
- );
- },
- { info: { propTablesExclude: [EuiThemeProvider], source: false } }
+export function ChildStartsBeforeParent() {
+ const waterfall = getWaterfall(
+ traceChildStartBeforeParent as TraceAPIResponse,
+ '975c8d5bfd1dd20b'
+ );
+ return (
+
);
+}
-storiesOf('app/TransactionDetails/Waterfall', module)
- .addDecorator((storyFn) => {storyFn()})
- .add(
- 'inferred spans',
- () => {
- const waterfall = getWaterfall(
- inferredSpans as TraceAPIResponse,
- 'f2387d37260d00bd'
- );
- return (
-
- );
- },
- { info: { propTablesExclude: [EuiThemeProvider], source: false } }
+export function InferredSpans() {
+ const waterfall = getWaterfall(
+ inferredSpans as TraceAPIResponse,
+ 'f2387d37260d00bd'
+ );
+ return (
+
);
+}
diff --git a/x-pack/plugins/apm/public/components/app/TransactionOverview/TransactionList/TransactionList.stories.tsx b/x-pack/plugins/apm/public/components/app/TransactionOverview/TransactionList/TransactionList.stories.tsx
index a65589bdd147f..049c5934813a2 100644
--- a/x-pack/plugins/apm/public/components/app/TransactionOverview/TransactionList/TransactionList.stories.tsx
+++ b/x-pack/plugins/apm/public/components/app/TransactionOverview/TransactionList/TransactionList.stories.tsx
@@ -4,33 +4,45 @@
* you may not use this file except in compliance with the Elastic License.
*/
-import { storiesOf } from '@storybook/react';
-import React from 'react';
+import React, { ComponentType } from 'react';
+import { MemoryRouter } from 'react-router-dom';
// eslint-disable-next-line @kbn/eslint/no-restricted-paths
import { TransactionGroup } from '../../../../../server/lib/transaction_groups/fetcher';
+import { MockApmPluginContextWrapper } from '../../../../context/ApmPluginContext/MockApmPluginContext';
import { TransactionList } from './';
-storiesOf('app/TransactionOverview/TransactionList', module).add(
- 'Single Row',
- () => {
- const items: TransactionGroup[] = [
- {
- key: {
- ['service.name']: 'adminconsole',
- ['transaction.name']:
- 'GET /api/v1/regions/azure-eastus2/clusters/elasticsearch/xc18de071deb4262be54baebf5f6a1ce/proxy/_snapshot/found-snapshots/_all',
- },
- transactionName:
+export default {
+ title: 'app/TransactionOverview/TransactionList',
+ component: TransactionList,
+ decorators: [
+ (Story: ComponentType) => (
+
+
+
+
+
+ ),
+ ],
+};
+
+export function SingleRow() {
+ const items: TransactionGroup[] = [
+ {
+ key: {
+ ['service.name']: 'adminconsole',
+ ['transaction.name']:
'GET /api/v1/regions/azure-eastus2/clusters/elasticsearch/xc18de071deb4262be54baebf5f6a1ce/proxy/_snapshot/found-snapshots/_all',
- serviceName: 'adminconsole',
- transactionType: 'request',
- p95: 11974156,
- averageResponseTime: 8087434.558974359,
- transactionsPerMinute: 0.40625,
- impact: 100,
},
- ];
+ transactionName:
+ 'GET /api/v1/regions/azure-eastus2/clusters/elasticsearch/xc18de071deb4262be54baebf5f6a1ce/proxy/_snapshot/found-snapshots/_all',
+ serviceName: 'adminconsole',
+ transactionType: 'request',
+ p95: 11974156,
+ averageResponseTime: 8087434.558974359,
+ transactionsPerMinute: 0.40625,
+ impact: 100,
+ },
+ ];
- return ;
- }
-);
+ return ;
+}
diff --git a/x-pack/plugins/apm/public/components/shared/ApmHeader/ApmHeader.stories.tsx b/x-pack/plugins/apm/public/components/shared/ApmHeader/ApmHeader.stories.tsx
deleted file mode 100644
index c9b7c77409840..0000000000000
--- a/x-pack/plugins/apm/public/components/shared/ApmHeader/ApmHeader.stories.tsx
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
- * or more contributor license agreements. Licensed under the Elastic License;
- * you may not use this file except in compliance with the Elastic License.
- */
-
-import { EuiTitle } from '@elastic/eui';
-import { storiesOf } from '@storybook/react';
-import React from 'react';
-import { MockApmPluginContextWrapper } from '../../../context/ApmPluginContext/MockApmPluginContext';
-import { ApmHeader } from './';
-
-storiesOf('shared/ApmHeader', module)
- .addDecorator((storyFn) => {
- return (
- {storyFn()}
- );
- })
- .add('Example', () => {
- return (
-
-
-
- GET
- /api/v1/regions/azure-eastus2/clusters/elasticsearch/xc18de071deb4262be54baebf5f6a1ce/proxy/_snapshot/found-snapshots/_all
-
-
-
- );
- });
diff --git a/x-pack/plugins/apm/public/components/shared/ApmHeader/apm_header.stories.tsx b/x-pack/plugins/apm/public/components/shared/ApmHeader/apm_header.stories.tsx
new file mode 100644
index 0000000000000..4078998bc7e3e
--- /dev/null
+++ b/x-pack/plugins/apm/public/components/shared/ApmHeader/apm_header.stories.tsx
@@ -0,0 +1,49 @@
+/*
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
+ * or more contributor license agreements. Licensed under the Elastic License;
+ * you may not use this file except in compliance with the Elastic License.
+ */
+
+import { EuiTitle } from '@elastic/eui';
+import React, { ComponentType } from 'react';
+import { MemoryRouter } from 'react-router-dom';
+import { HttpSetup } from '../../../../../../../src/core/public';
+import { MockApmPluginContextWrapper } from '../../../context/ApmPluginContext/MockApmPluginContext';
+import { MockUrlParamsContextProvider } from '../../../context/UrlParamsContext/MockUrlParamsContextProvider';
+import { createCallApmApi } from '../../../services/rest/createCallApmApi';
+import { ApmHeader } from './';
+
+export default {
+ title: 'shared/ApmHeader',
+ component: ApmHeader,
+ decorators: [
+ (Story: ComponentType) => {
+ createCallApmApi(({} as unknown) as HttpSetup);
+
+ return (
+
+
+
+
+
+
+
+ );
+ },
+ ],
+};
+
+export function Example() {
+ return (
+
+
+
+ GET
+ /api/v1/regions/azure-eastus2/clusters/elasticsearch/xc18de071deb4262be54baebf5f6a1ce/proxy/_snapshot/found-snapshots/_all
+
+
+
+ );
+}
diff --git a/x-pack/plugins/apm/public/components/shared/DatePicker/__test__/DatePicker.test.tsx b/x-pack/plugins/apm/public/components/shared/DatePicker/date_picker.test.tsx
similarity index 91%
rename from x-pack/plugins/apm/public/components/shared/DatePicker/__test__/DatePicker.test.tsx
rename to x-pack/plugins/apm/public/components/shared/DatePicker/date_picker.test.tsx
index 9de70d50b25e1..efa827a0e5df8 100644
--- a/x-pack/plugins/apm/public/components/shared/DatePicker/__test__/DatePicker.test.tsx
+++ b/x-pack/plugins/apm/public/components/shared/DatePicker/date_picker.test.tsx
@@ -5,18 +5,18 @@
*/
import { EuiSuperDatePicker } from '@elastic/eui';
-import { wait } from '@testing-library/react';
+import { waitFor } from '@testing-library/react';
import { mount } from 'enzyme';
import { createMemoryHistory } from 'history';
import React, { ReactNode } from 'react';
import { Router } from 'react-router-dom';
-import { MockApmPluginContextWrapper } from '../../../../context/ApmPluginContext/MockApmPluginContext';
+import { MockApmPluginContextWrapper } from '../../../context/ApmPluginContext/MockApmPluginContext';
import {
UrlParamsContext,
useUiFilters,
-} from '../../../../context/UrlParamsContext';
-import { IUrlParams } from '../../../../context/UrlParamsContext/types';
-import { DatePicker } from '../index';
+} from '../../../context/UrlParamsContext';
+import { IUrlParams } from '../../../context/UrlParamsContext/types';
+import { DatePicker } from './';
const history = createMemoryHistory();
const mockHistoryPush = jest.spyOn(history, 'push');
@@ -124,7 +124,7 @@ describe('DatePicker', () => {
});
expect(mockRefreshTimeRange).not.toHaveBeenCalled();
jest.advanceTimersByTime(1000);
- await wait();
+ await waitFor(() => {});
expect(mockRefreshTimeRange).toHaveBeenCalled();
wrapper.unmount();
});
@@ -134,7 +134,7 @@ describe('DatePicker', () => {
mountDatePicker({ refreshPaused: true, refreshInterval: 1000 });
expect(mockRefreshTimeRange).not.toHaveBeenCalled();
jest.advanceTimersByTime(1000);
- await wait();
+ await waitFor(() => {});
expect(mockRefreshTimeRange).not.toHaveBeenCalled();
});
});
diff --git a/x-pack/plugins/apm/public/components/shared/LicensePrompt/LicensePrompt.stories.tsx b/x-pack/plugins/apm/public/components/shared/LicensePrompt/LicensePrompt.stories.tsx
index 45fa3dd382266..1819e71a49753 100644
--- a/x-pack/plugins/apm/public/components/shared/LicensePrompt/LicensePrompt.stories.tsx
+++ b/x-pack/plugins/apm/public/components/shared/LicensePrompt/LicensePrompt.stories.tsx
@@ -4,31 +4,31 @@
* you may not use this file except in compliance with the Elastic License.
*/
-import { storiesOf } from '@storybook/react';
-import React from 'react';
+import React, { ComponentType } from 'react';
+import { LicensePrompt } from '.';
import {
ApmPluginContext,
ApmPluginContextValue,
} from '../../../context/ApmPluginContext';
-import { LicensePrompt } from '.';
-storiesOf('app/LicensePrompt', module).add(
- 'example',
- () => {
- const contextMock = ({
- core: { http: { basePath: { prepend: () => {} } } },
- } as unknown) as ApmPluginContextValue;
+const contextMock = ({
+ core: { http: { basePath: { prepend: () => {} } } },
+} as unknown) as ApmPluginContextValue;
- return (
+export default {
+ title: 'app/LicensePrompt',
+ component: LicensePrompt,
+ decorators: [
+ (Story: ComponentType) => (
-
+ {' '}
- );
- },
- {
- info: {
- propTablesExclude: [ApmPluginContext.Provider, LicensePrompt],
- source: false,
- },
- }
-);
+ ),
+ ],
+};
+
+export function Example() {
+ return (
+
+ );
+}
diff --git a/x-pack/plugins/apm/public/components/shared/Links/DiscoverLinks/__test__/__snapshots__/DiscoverTransactionButton.test.tsx.snap b/x-pack/plugins/apm/public/components/shared/Links/DiscoverLinks/__test__/__snapshots__/discover_transaction_button.test.tsx.snap
similarity index 100%
rename from x-pack/plugins/apm/public/components/shared/Links/DiscoverLinks/__test__/__snapshots__/DiscoverTransactionButton.test.tsx.snap
rename to x-pack/plugins/apm/public/components/shared/Links/DiscoverLinks/__test__/__snapshots__/discover_transaction_button.test.tsx.snap
diff --git a/x-pack/plugins/apm/public/components/shared/Links/DiscoverLinks/__test__/DiscoverTransactionButton.test.tsx b/x-pack/plugins/apm/public/components/shared/Links/DiscoverLinks/__test__/discover_transaction_button.test.tsx
similarity index 78%
rename from x-pack/plugins/apm/public/components/shared/Links/DiscoverLinks/__test__/DiscoverTransactionButton.test.tsx
rename to x-pack/plugins/apm/public/components/shared/Links/DiscoverLinks/__test__/discover_transaction_button.test.tsx
index 17dca4796ec74..4a68a5c0b4904 100644
--- a/x-pack/plugins/apm/public/components/shared/Links/DiscoverLinks/__test__/DiscoverTransactionButton.test.tsx
+++ b/x-pack/plugins/apm/public/components/shared/Links/DiscoverLinks/__test__/discover_transaction_button.test.tsx
@@ -11,12 +11,11 @@ import {
DiscoverTransactionLink,
getDiscoverQuery,
} from '../DiscoverTransactionLink';
-import mockTransaction from './mockTransaction.json';
+import mockTransaction from './mock_transaction.json';
describe('DiscoverTransactionLink component', () => {
it('should render with data', () => {
- // @ts-expect-error invalid json mock
- const transaction: Transaction = mockTransaction;
+ const transaction = mockTransaction as Transaction;
expect(
shallow()
@@ -26,8 +25,7 @@ describe('DiscoverTransactionLink component', () => {
describe('getDiscoverQuery', () => {
it('should return the correct query params object', () => {
- // @ts-expect-error invalid json mock
- const transaction: Transaction = mockTransaction;
+ const transaction = mockTransaction as Transaction;
const result = getDiscoverQuery(transaction);
expect(result).toMatchSnapshot();
});
diff --git a/x-pack/plugins/apm/public/components/shared/Links/DiscoverLinks/__test__/mockTransaction.json b/x-pack/plugins/apm/public/components/shared/Links/DiscoverLinks/__test__/mock_transaction.json
similarity index 98%
rename from x-pack/plugins/apm/public/components/shared/Links/DiscoverLinks/__test__/mockTransaction.json
rename to x-pack/plugins/apm/public/components/shared/Links/DiscoverLinks/__test__/mock_transaction.json
index 4d038cd7e8397..6c08eedf50b06 100644
--- a/x-pack/plugins/apm/public/components/shared/Links/DiscoverLinks/__test__/mockTransaction.json
+++ b/x-pack/plugins/apm/public/components/shared/Links/DiscoverLinks/__test__/mock_transaction.json
@@ -1,6 +1,7 @@
{
"agent": {
"hostname": "227453131a17",
+ "name": "go",
"type": "apm-server",
"version": "7.0.0"
},
@@ -91,9 +92,7 @@
},
"name": "GET /api/products/:id/customers",
"span_count": {
- "dropped": {
- "total": 0
- },
+ "dropped": 0,
"started": 1
},
"id": "8b60bd32ecc6e150",
diff --git a/x-pack/plugins/apm/public/components/shared/Links/apm/AnomalyDetectionSetupLink.test.tsx b/x-pack/plugins/apm/public/components/shared/Links/apm/anomaly_detection_setup_link.test.tsx
similarity index 96%
rename from x-pack/plugins/apm/public/components/shared/Links/apm/AnomalyDetectionSetupLink.test.tsx
rename to x-pack/plugins/apm/public/components/shared/Links/apm/anomaly_detection_setup_link.test.tsx
index 585ab22b5fb27..3f675f494a661 100644
--- a/x-pack/plugins/apm/public/components/shared/Links/apm/AnomalyDetectionSetupLink.test.tsx
+++ b/x-pack/plugins/apm/public/components/shared/Links/apm/anomaly_detection_setup_link.test.tsx
@@ -5,7 +5,7 @@
*/
import React from 'react';
-import { render, fireEvent, wait } from '@testing-library/react';
+import { render, fireEvent, waitFor } from '@testing-library/react';
import { MissingJobsAlert } from './AnomalyDetectionSetupLink';
import * as hooks from '../../../../hooks/useFetcher';
@@ -33,7 +33,7 @@ async function renderTooltipAnchor({
fireEvent.mouseOver(toolTipAnchor);
// wait for tooltip text to be in the DOM
- await wait(() => {
+ await waitFor(() => {
const toolTipText = baseElement.querySelector('.euiToolTipPopover')
?.textContent;
expect(toolTipText).not.toBe(undefined);
diff --git a/x-pack/plugins/apm/public/context/UrlParamsContext/__tests__/UrlParamsContext.test.tsx b/x-pack/plugins/apm/public/context/UrlParamsContext/url_params_context.test.tsx
similarity index 94%
rename from x-pack/plugins/apm/public/context/UrlParamsContext/__tests__/UrlParamsContext.test.tsx
rename to x-pack/plugins/apm/public/context/UrlParamsContext/url_params_context.test.tsx
index 9989e568953f5..3a6ccce178cd4 100644
--- a/x-pack/plugins/apm/public/context/UrlParamsContext/__tests__/UrlParamsContext.test.tsx
+++ b/x-pack/plugins/apm/public/context/UrlParamsContext/url_params_context.test.tsx
@@ -5,14 +5,14 @@
*/
import * as React from 'react';
-import { UrlParamsContext, UrlParamsProvider } from '..';
+import { UrlParamsContext, UrlParamsProvider } from './';
import { mount } from 'enzyme';
import { Location, History } from 'history';
import { MemoryRouter, Router } from 'react-router-dom';
import moment from 'moment-timezone';
-import { IUrlParams } from '../types';
-import { getParsedDate } from '../helpers';
-import { wait } from '@testing-library/react';
+import { IUrlParams } from './types';
+import { getParsedDate } from './helpers';
+import { waitFor } from '@testing-library/react';
function mountParams(location: Location) {
return mount(
@@ -119,13 +119,13 @@ describe('UrlParamsContext', () => {
);
- await wait();
+ await waitFor(() => {});
expect(calls.length).toBe(1);
wrapper.find('button').simulate('click');
- await wait();
+ await waitFor(() => {});
expect(calls.length).toBe(2);
@@ -170,11 +170,11 @@ describe('UrlParamsContext', () => {
);
- await wait();
+ await waitFor(() => {});
wrapper.find('button').simulate('click');
- await wait();
+ await waitFor(() => {});
const params = getDataFromOutput(wrapper);
expect(params.start).toEqual('2000-06-14T00:00:00.000Z');
diff --git a/x-pack/plugins/apm/public/hooks/useFetcher.integration.test.tsx b/x-pack/plugins/apm/public/hooks/use_fetcher.integration.test.tsx
similarity index 94%
rename from x-pack/plugins/apm/public/hooks/useFetcher.integration.test.tsx
rename to x-pack/plugins/apm/public/hooks/use_fetcher.integration.test.tsx
index 0081662200b93..e837851828d94 100644
--- a/x-pack/plugins/apm/public/hooks/useFetcher.integration.test.tsx
+++ b/x-pack/plugins/apm/public/hooks/use_fetcher.integration.test.tsx
@@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
-import { render, wait } from '@testing-library/react';
+import { render, waitFor } from '@testing-library/react';
import React from 'react';
import { delay } from '../utils/testHelpers';
import { useFetcher } from './useFetcher';
@@ -65,7 +65,7 @@ describe('when simulating race condition', () => {
it('should render "Hello from Peter" after 200ms', async () => {
jest.advanceTimersByTime(200);
- await wait();
+ await waitFor(() => {});
expect(renderSpy).lastCalledWith({
data: 'Hello from Peter',
@@ -76,7 +76,7 @@ describe('when simulating race condition', () => {
it('should render "Hello from Peter" after 600ms', async () => {
jest.advanceTimersByTime(600);
- await wait();
+ await waitFor(() => {});
expect(renderSpy).lastCalledWith({
data: 'Hello from Peter',
@@ -87,7 +87,7 @@ describe('when simulating race condition', () => {
it('should should NOT have rendered "Hello from John" at any point', async () => {
jest.advanceTimersByTime(600);
- await wait();
+ await waitFor(() => {});
expect(renderSpy).not.toHaveBeenCalledWith({
data: 'Hello from John',
@@ -98,7 +98,7 @@ describe('when simulating race condition', () => {
it('should send and receive calls in the right order', async () => {
jest.advanceTimersByTime(600);
- await wait();
+ await waitFor(() => {});
expect(requestCallOrder).toEqual([
['request', 'John', 500],
diff --git a/x-pack/plugins/apm/public/utils/testHelpers.tsx b/x-pack/plugins/apm/public/utils/testHelpers.tsx
index 7826e9672a3bb..f990c4387ddf1 100644
--- a/x-pack/plugins/apm/public/utils/testHelpers.tsx
+++ b/x-pack/plugins/apm/public/utils/testHelpers.tsx
@@ -12,7 +12,7 @@ import enzymeToJson from 'enzyme-to-json';
import { Location } from 'history';
import moment from 'moment';
import { Moment } from 'moment-timezone';
-import { render, waitForElement } from '@testing-library/react';
+import { render, waitFor } from '@testing-library/react';
import { MemoryRouter } from 'react-router-dom';
// eslint-disable-next-line @kbn/eslint/no-restricted-paths
import { APMConfig } from '../../server';
@@ -75,10 +75,10 @@ export async function getRenderedHref(Component: React.FC, location: Location) {