[APM] Use correct agent name in instructions (#32896) (#32903)

This commit is contained in:
Hamid 2019-03-12 08:46:32 +01:00 committed by GitHub
parent cd9e77717c
commit 728e5172d6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -318,7 +318,7 @@ export const createJsAgentInstructions = (apmServerUrl = '') => [
textPre: i18n.translate('kbn.server.tutorials.apm.jsClient.install.textPre', {
defaultMessage: 'Install the APM agent for JavaScript as a dependency to your application:',
}),
commands: [`npm install elastic-apm-js-base --save`],
commands: [`npm install @elastic/apm-rum --save`],
},
{
title: i18n.translate('kbn.server.tutorials.apm.jsClient.configure.title', {
@ -327,7 +327,7 @@ export const createJsAgentInstructions = (apmServerUrl = '') => [
textPre: i18n.translate('kbn.server.tutorials.apm.jsClient.configure.textPre', {
defaultMessage: 'Agents are libraries that run inside of your application.',
}),
commands: `import {curlyOpen} init as initApm {curlyClose} from 'elastic-apm-js-base'
commands: `import {curlyOpen} init as initApm {curlyClose} from '@elastic/apm-rum'
var apm = initApm({curlyOpen}
// ${i18n.translate('kbn.server.tutorials.apm.jsClient.configure.commands.setRequiredServiceNameComment', {