Skip to content

Commit

Permalink
[Maps] Track proxied EMS requests (#108717)
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasneirynck authored Aug 16, 2021
1 parent c5ec546 commit 9112710
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion x-pack/plugins/maps/server/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,10 @@ export async function initRoutes(core, getLicenseId, emsSettings, kbnVersion, lo
landingPageUrl: emsSettings.getEMSLandingPageUrl(),
fetchFunction: fetch,
});
emsClient.addQueryParams({ license: currentLicenseId });
emsClient.addQueryParams({
license: currentLicenseId,
is_kibana_proxy: '1', // identifies this is proxied request from kibana
});
return emsClient;
} else {
return EMPTY_EMS_CLIENT;
Expand Down

0 comments on commit 9112710

Please sign in to comment.