diff --git a/.i18nrc.json b/.i18nrc.json index e8bcc790e26fc98..9af7f17067b8e31 100644 --- a/.i18nrc.json +++ b/.i18nrc.json @@ -57,7 +57,7 @@ "visTypeXy": "src/plugins/vis_type_xy", "visualizations": "src/plugins/visualizations", "visualize": "src/plugins/visualize", - "apm": "src/plugins/apm_oss" + "apmOss": "src/plugins/apm_oss" }, "exclude": [ "src/legacy/ui/ui_render/ui_render_mixin.js" diff --git a/src/plugins/apm_oss/public/index.ts b/src/plugins/apm_oss/public/index.ts index aab3ec8b13c4e92..4af80eec4389bd3 100644 --- a/src/plugins/apm_oss/public/index.ts +++ b/src/plugins/apm_oss/public/index.ts @@ -25,3 +25,5 @@ export function plugin() { return new ApmOssPlugin(); } export { ApmOssPluginSetup, ApmOssPluginStart } from './types'; + +export { APM_STATIC_INDEX_PATTERN_ID } from '../common/index_pattern_constants'; diff --git a/src/plugins/apm_oss/server/tutorial/envs/on_prem.ts b/src/plugins/apm_oss/server/tutorial/envs/on_prem.ts index 5c4637d6c6961d4..477aa36fe3a9229 100644 --- a/src/plugins/apm_oss/server/tutorial/envs/on_prem.ts +++ b/src/plugins/apm_oss/server/tutorial/envs/on_prem.ts @@ -60,14 +60,14 @@ export function onPremInstructions({ return { instructionSets: [ { - title: i18n.translate('apm.tutorial.apmServer.title', { + title: i18n.translate('apmOss.tutorial.apmServer.title', { defaultMessage: 'APM Server', }), callOut: { - title: i18n.translate('apm.tutorial.apmServer.callOut.title', { + title: i18n.translate('apmOss.tutorial.apmServer.callOut.title', { defaultMessage: 'Important: Updating to 7.0 or higher', }), - message: i18n.translate('apm.tutorial.apmServer.callOut.message', { + message: i18n.translate('apmOss.tutorial.apmServer.callOut.message', { defaultMessage: `Please make sure your APM Server is updated to 7.0 or higher. \ You can also migrate your 6.x data with the migration assistant found in Kibana's management section.`, }), @@ -92,20 +92,20 @@ export function onPremInstructions({ }, ], statusCheck: { - title: i18n.translate('apm.tutorial.apmServer.statusCheck.title', { + title: i18n.translate('apmOss.tutorial.apmServer.statusCheck.title', { defaultMessage: 'APM Server status', }), - text: i18n.translate('apm.tutorial.apmServer.statusCheck.text', { + text: i18n.translate('apmOss.tutorial.apmServer.statusCheck.text', { defaultMessage: 'Make sure APM Server is running before you start implementing the APM agents.', }), - btnLabel: i18n.translate('apm.tutorial.apmServer.statusCheck.btnLabel', { + btnLabel: i18n.translate('apmOss.tutorial.apmServer.statusCheck.btnLabel', { defaultMessage: 'Check APM Server status', }), - success: i18n.translate('apm.tutorial.apmServer.statusCheck.successMessage', { + success: i18n.translate('apmOss.tutorial.apmServer.statusCheck.successMessage', { defaultMessage: 'You have correctly setup APM Server', }), - error: i18n.translate('apm.tutorial.apmServer.statusCheck.errorMessage', { + error: i18n.translate('apmOss.tutorial.apmServer.statusCheck.errorMessage', { defaultMessage: 'No APM Server detected. Please make sure it is running and you have updated to 7.0 or higher.', }), @@ -123,7 +123,7 @@ export function onPremInstructions({ }, }, { - title: i18n.translate('apm.tutorial.apmAgents.title', { + title: i18n.translate('apmOss.tutorial.apmAgents.title', { defaultMessage: 'APM Agents', }), instructionVariants: [ @@ -165,20 +165,20 @@ export function onPremInstructions({ }, ], statusCheck: { - title: i18n.translate('apm.tutorial.apmAgents.statusCheck.title', { + title: i18n.translate('apmOss.tutorial.apmAgents.statusCheck.title', { defaultMessage: 'Agent status', }), - text: i18n.translate('apm.tutorial.apmAgents.statusCheck.text', { + text: i18n.translate('apmOss.tutorial.apmAgents.statusCheck.text', { defaultMessage: 'Make sure your application is running and the agents are sending data.', }), - btnLabel: i18n.translate('apm.tutorial.apmAgents.statusCheck.btnLabel', { + btnLabel: i18n.translate('apmOss.tutorial.apmAgents.statusCheck.btnLabel', { defaultMessage: 'Check agent status', }), - success: i18n.translate('apm.tutorial.apmAgents.statusCheck.successMessage', { + success: i18n.translate('apmOss.tutorial.apmAgents.statusCheck.successMessage', { defaultMessage: 'Data successfully received from one or more agents', }), - error: i18n.translate('apm.tutorial.apmAgents.statusCheck.errorMessage', { + error: i18n.translate('apmOss.tutorial.apmAgents.statusCheck.errorMessage', { defaultMessage: 'No data has been received from agents yet', }), esHitsCheck: { diff --git a/src/plugins/apm_oss/server/tutorial/index.ts b/src/plugins/apm_oss/server/tutorial/index.ts index 7b1f30962940890..aa775d007de3099 100644 --- a/src/plugins/apm_oss/server/tutorial/index.ts +++ b/src/plugins/apm_oss/server/tutorial/index.ts @@ -23,7 +23,7 @@ import apmIndexPattern from './index_pattern.json'; import { ArtifactsSchema, TutorialsCategory } from '../../../../../src/plugins/home/server'; import { APM_STATIC_INDEX_PATTERN_ID } from '../../common/index_pattern_constants'; -const apmIntro = i18n.translate('apm.tutorial.introduction', { +const apmIntro = i18n.translate('apmOss.tutorial.introduction', { defaultMessage: 'Collect in-depth performance metrics and errors from inside your applications.', }); @@ -55,7 +55,7 @@ export const tutorialProvider = ({ dashboards: [ { id: '8d3ed660-7828-11e7-8c47-65b845b5cfb3', - linkLabel: i18n.translate('apm.tutorial.specProvider.artifacts.dashboards.linkLabel', { + linkLabel: i18n.translate('apmOss.tutorial.specProvider.artifacts.dashboards.linkLabel', { defaultMessage: 'APM dashboard', }), isOverview: true, @@ -65,12 +65,12 @@ export const tutorialProvider = ({ return { id: 'apm', - name: i18n.translate('apm.tutorial.specProvider.name', { + name: i18n.translate('apmOss.tutorial.specProvider.name', { defaultMessage: 'APM', }), category: TutorialsCategory.OTHER, shortDescription: apmIntro, - longDescription: i18n.translate('apm.tutorial.specProvider.longDescription', { + longDescription: i18n.translate('apmOss.tutorial.specProvider.longDescription', { defaultMessage: 'Application Performance Monitoring (APM) collects in-depth \ performance metrics and errors from inside your application. \ @@ -86,7 +86,7 @@ It allows you to monitor the performance of thousands of applications in real ti onPrem: onPremInstructions(indices), previewImagePath: '/plugins/apmOss/assets/apm.png', savedObjects, - savedObjectsInstallMsg: i18n.translate('apm.tutorial.specProvider.savedObjectsInstallMsg', { + savedObjectsInstallMsg: i18n.translate('apmOss.tutorial.specProvider.savedObjectsInstallMsg', { defaultMessage: 'An APM index pattern is required for some features in the APM UI.', }), }; diff --git a/src/plugins/apm_oss/server/tutorial/instructions/apm_agent_instructions.ts b/src/plugins/apm_oss/server/tutorial/instructions/apm_agent_instructions.ts index 66ab1c6e72efc67..95f121439496c71 100644 --- a/src/plugins/apm_oss/server/tutorial/instructions/apm_agent_instructions.ts +++ b/src/plugins/apm_oss/server/tutorial/instructions/apm_agent_instructions.ts @@ -21,51 +21,51 @@ import { i18n } from '@kbn/i18n'; export const createNodeAgentInstructions = (apmServerUrl = '', secretToken = '') => [ { - title: i18n.translate('apm.tutorial.nodeClient.install.title', { + title: i18n.translate('apmOss.tutorial.nodeClient.install.title', { defaultMessage: 'Install the APM agent', }), - textPre: i18n.translate('apm.tutorial.nodeClient.install.textPre', { + textPre: i18n.translate('apmOss.tutorial.nodeClient.install.textPre', { defaultMessage: 'Install the APM agent for Node.js as a dependency to your application.', }), commands: ['npm install elastic-apm-node --save'], }, { - title: i18n.translate('apm.tutorial.nodeClient.configure.title', { + title: i18n.translate('apmOss.tutorial.nodeClient.configure.title', { defaultMessage: 'Configure the agent', }), - textPre: i18n.translate('apm.tutorial.nodeClient.configure.textPre', { + textPre: i18n.translate('apmOss.tutorial.nodeClient.configure.textPre', { defaultMessage: 'Agents are libraries that run inside of your application process. \ APM services are created programmatically based on the `serviceName`. \ This agent supports a vararity of frameworks but can also be used with your custom stack.', }), commands: `// ${i18n.translate( - 'apm.tutorial.nodeClient.configure.commands.addThisToTheFileTopComment', + 'apmOss.tutorial.nodeClient.configure.commands.addThisToTheFileTopComment', { defaultMessage: 'Add this to the VERY top of the first file loaded in your app', } )} var apm = require('elastic-apm-node').start({curlyOpen} - // ${i18n.translate('apm.tutorial.nodeClient.configure.commands.setRequiredServiceNameComment', { + // ${i18n.translate('apmOss.tutorial.nodeClient.configure.commands.setRequiredServiceNameComment', { defaultMessage: 'Override service name from package.json', })} - // ${i18n.translate('apm.tutorial.nodeClient.configure.commands.allowedCharactersComment', { + // ${i18n.translate('apmOss.tutorial.nodeClient.configure.commands.allowedCharactersComment', { defaultMessage: 'Allowed characters: a-z, A-Z, 0-9, -, _, and space', })} serviceName: '', - // ${i18n.translate('apm.tutorial.nodeClient.configure.commands.useIfApmRequiresTokenComment', { + // ${i18n.translate('apmOss.tutorial.nodeClient.configure.commands.useIfApmRequiresTokenComment', { defaultMessage: 'Use if APM Server requires a token', })} secretToken: '${secretToken}', - // ${i18n.translate('apm.tutorial.nodeClient.configure.commands.setCustomApmServerUrlComment', { + // ${i18n.translate('apmOss.tutorial.nodeClient.configure.commands.setCustomApmServerUrlComment', { defaultMessage: 'Set custom APM Server URL (default: {defaultApmServerUrl})', values: { defaultApmServerUrl: 'http://localhost:8200' }, })} serverUrl: '${apmServerUrl}' {curlyClose})`.split('\n'), - textPost: i18n.translate('apm.tutorial.nodeClient.configure.textPost', { + textPost: i18n.translate('apmOss.tutorial.nodeClient.configure.textPost', { defaultMessage: 'See [the documentation]({documentationLink}) for advanced usage, including how to use with \ [Babel/ES Modules]({babelEsModulesLink}).', @@ -80,24 +80,24 @@ var apm = require('elastic-apm-node').start({curlyOpen} export const createDjangoAgentInstructions = (apmServerUrl = '', secretToken = '') => [ { - title: i18n.translate('apm.tutorial.djangoClient.install.title', { + title: i18n.translate('apmOss.tutorial.djangoClient.install.title', { defaultMessage: 'Install the APM agent', }), - textPre: i18n.translate('apm.tutorial.djangoClient.install.textPre', { + textPre: i18n.translate('apmOss.tutorial.djangoClient.install.textPre', { defaultMessage: 'Install the APM agent for Python as a dependency.', }), commands: ['$ pip install elastic-apm'], }, { - title: i18n.translate('apm.tutorial.djangoClient.configure.title', { + title: i18n.translate('apmOss.tutorial.djangoClient.configure.title', { defaultMessage: 'Configure the agent', }), - textPre: i18n.translate('apm.tutorial.djangoClient.configure.textPre', { + textPre: i18n.translate('apmOss.tutorial.djangoClient.configure.textPre', { defaultMessage: 'Agents are libraries that run inside of your application process. \ APM services are created programmatically based on the `SERVICE_NAME`.', }), - commands: `# ${i18n.translate('apm.tutorial.djangoClient.configure.commands.addAgentComment', { + commands: `# ${i18n.translate('apmOss.tutorial.djangoClient.configure.commands.addAgentComment', { defaultMessage: 'Add the agent to the installed apps', })} INSTALLED_APPS = ( @@ -106,37 +106,37 @@ INSTALLED_APPS = ( ) ELASTIC_APM = {curlyOpen} - # ${i18n.translate('apm.tutorial.djangoClient.configure.commands.setRequiredServiceNameComment', { + # ${i18n.translate('apmOss.tutorial.djangoClient.configure.commands.setRequiredServiceNameComment', { defaultMessage: 'Set required service name. Allowed characters:', })} - # ${i18n.translate('apm.tutorial.djangoClient.configure.commands.allowedCharactersComment', { + # ${i18n.translate('apmOss.tutorial.djangoClient.configure.commands.allowedCharactersComment', { defaultMessage: 'a-z, A-Z, 0-9, -, _, and space', })} 'SERVICE_NAME': '', # ${i18n.translate( - 'apm.tutorial.djangoClient.configure.commands.useIfApmServerRequiresTokenComment', + 'apmOss.tutorial.djangoClient.configure.commands.useIfApmServerRequiresTokenComment', { defaultMessage: 'Use if APM Server requires a token', } )} 'SECRET_TOKEN': '${secretToken}', - # ${i18n.translate('apm.tutorial.djangoClient.configure.commands.setCustomApmServerUrlComment', { + # ${i18n.translate('apmOss.tutorial.djangoClient.configure.commands.setCustomApmServerUrlComment', { defaultMessage: 'Set custom APM Server URL (default: {defaultApmServerUrl})', values: { defaultApmServerUrl: 'http://localhost:8200' }, })} 'SERVER_URL': '${apmServerUrl}', {curlyClose} -# ${i18n.translate('apm.tutorial.djangoClient.configure.commands.addTracingMiddlewareComment', { +# ${i18n.translate('apmOss.tutorial.djangoClient.configure.commands.addTracingMiddlewareComment', { defaultMessage: 'To send performance metrics, add our tracing middleware:', })} MIDDLEWARE = ( 'elasticapm.contrib.django.middleware.TracingMiddleware', #... )`.split('\n'), - textPost: i18n.translate('apm.tutorial.djangoClient.configure.textPost', { + textPost: i18n.translate('apmOss.tutorial.djangoClient.configure.textPost', { defaultMessage: 'See the [documentation]({documentationLink}) for advanced usage.', values: { documentationLink: @@ -148,25 +148,25 @@ MIDDLEWARE = ( export const createFlaskAgentInstructions = (apmServerUrl = '', secretToken = '') => [ { - title: i18n.translate('apm.tutorial.flaskClient.install.title', { + title: i18n.translate('apmOss.tutorial.flaskClient.install.title', { defaultMessage: 'Install the APM agent', }), - textPre: i18n.translate('apm.tutorial.flaskClient.install.textPre', { + textPre: i18n.translate('apmOss.tutorial.flaskClient.install.textPre', { defaultMessage: 'Install the APM agent for Python as a dependency.', }), commands: ['$ pip install elastic-apm[flask]'], }, { - title: i18n.translate('apm.tutorial.flaskClient.configure.title', { + title: i18n.translate('apmOss.tutorial.flaskClient.configure.title', { defaultMessage: 'Configure the agent', }), - textPre: i18n.translate('apm.tutorial.flaskClient.configure.textPre', { + textPre: i18n.translate('apmOss.tutorial.flaskClient.configure.textPre', { defaultMessage: 'Agents are libraries that run inside of your application process. \ APM services are created programmatically based on the `SERVICE_NAME`.', }), commands: `# ${i18n.translate( - 'apm.tutorial.flaskClient.configure.commands.initializeUsingEnvironmentVariablesComment', + 'apmOss.tutorial.flaskClient.configure.commands.initializeUsingEnvironmentVariablesComment', { defaultMessage: 'initialize using environment variables', } @@ -175,28 +175,28 @@ from elasticapm.contrib.flask import ElasticAPM app = Flask(__name__) apm = ElasticAPM(app) -# ${i18n.translate('apm.tutorial.flaskClient.configure.commands.configureElasticApmComment', { +# ${i18n.translate('apmOss.tutorial.flaskClient.configure.commands.configureElasticApmComment', { defaultMessage: "or configure to use ELASTIC_APM in your application's settings", })} from elasticapm.contrib.flask import ElasticAPM app.config['ELASTIC_APM'] = {curlyOpen} - # ${i18n.translate('apm.tutorial.flaskClient.configure.commands.setRequiredServiceNameComment', { + # ${i18n.translate('apmOss.tutorial.flaskClient.configure.commands.setRequiredServiceNameComment', { defaultMessage: 'Set required service name. Allowed characters:', })} - # ${i18n.translate('apm.tutorial.flaskClient.configure.commands.allowedCharactersComment', { + # ${i18n.translate('apmOss.tutorial.flaskClient.configure.commands.allowedCharactersComment', { defaultMessage: 'a-z, A-Z, 0-9, -, _, and space', })} 'SERVICE_NAME': '', # ${i18n.translate( - 'apm.tutorial.flaskClient.configure.commands.useIfApmServerRequiresTokenComment', + 'apmOss.tutorial.flaskClient.configure.commands.useIfApmServerRequiresTokenComment', { defaultMessage: 'Use if APM Server requires a token', } )} 'SECRET_TOKEN': '${secretToken}', - # ${i18n.translate('apm.tutorial.flaskClient.configure.commands.setCustomApmServerUrlComment', { + # ${i18n.translate('apmOss.tutorial.flaskClient.configure.commands.setCustomApmServerUrlComment', { defaultMessage: 'Set custom APM Server URL (default: {defaultApmServerUrl})', values: { defaultApmServerUrl: 'http://localhost:8200' }, })} @@ -204,7 +204,7 @@ app.config['ELASTIC_APM'] = {curlyOpen} {curlyClose} apm = ElasticAPM(app)`.split('\n'), - textPost: i18n.translate('apm.tutorial.flaskClient.configure.textPost', { + textPost: i18n.translate('apmOss.tutorial.flaskClient.configure.textPost', { defaultMessage: 'See the [documentation]({documentationLink}) for advanced usage.', values: { documentationLink: @@ -216,19 +216,19 @@ apm = ElasticAPM(app)`.split('\n'), export const createRailsAgentInstructions = (apmServerUrl = '', secretToken = '') => [ { - title: i18n.translate('apm.tutorial.railsClient.install.title', { + title: i18n.translate('apmOss.tutorial.railsClient.install.title', { defaultMessage: 'Install the APM agent', }), - textPre: i18n.translate('apm.tutorial.railsClient.install.textPre', { + textPre: i18n.translate('apmOss.tutorial.railsClient.install.textPre', { defaultMessage: 'Add the agent to your Gemfile.', }), commands: [`gem 'elastic-apm'`], }, { - title: i18n.translate('apm.tutorial.railsClient.configure.title', { + title: i18n.translate('apmOss.tutorial.railsClient.configure.title', { defaultMessage: 'Configure the agent', }), - textPre: i18n.translate('apm.tutorial.railsClient.configure.textPre', { + textPre: i18n.translate('apmOss.tutorial.railsClient.configure.textPre', { defaultMessage: 'APM is automatically started when your app boots. Configure the agent, by creating the config file {configFile}', values: { configFile: '`config/elastic_apm.yml`' }, @@ -244,7 +244,7 @@ export const createRailsAgentInstructions = (apmServerUrl = '', secretToken = '' # Set custom APM Server URL (default: http://localhost:8200) # server_url: '${apmServerUrl || 'http://localhost:8200'}'`.split('\n'), - textPost: i18n.translate('apm.tutorial.railsClient.configure.textPost', { + textPost: i18n.translate('apmOss.tutorial.railsClient.configure.textPost', { defaultMessage: 'See the [documentation]({documentationLink}) for configuration options and advanced usage.\n\n', values: { @@ -256,19 +256,19 @@ export const createRailsAgentInstructions = (apmServerUrl = '', secretToken = '' export const createRackAgentInstructions = (apmServerUrl = '', secretToken = '') => [ { - title: i18n.translate('apm.tutorial.rackClient.install.title', { + title: i18n.translate('apmOss.tutorial.rackClient.install.title', { defaultMessage: 'Install the APM agent', }), - textPre: i18n.translate('apm.tutorial.rackClient.install.textPre', { + textPre: i18n.translate('apmOss.tutorial.rackClient.install.textPre', { defaultMessage: 'Add the agent to your Gemfile.', }), commands: [`gem 'elastic-apm'`], }, { - title: i18n.translate('apm.tutorial.rackClient.configure.title', { + title: i18n.translate('apmOss.tutorial.rackClient.configure.title', { defaultMessage: 'Configure the agent', }), - textPre: i18n.translate('apm.tutorial.rackClient.configure.textPre', { + textPre: i18n.translate('apmOss.tutorial.rackClient.configure.textPre', { defaultMessage: 'For Rack or a compatible framework (e.g. Sinatra), include the middleware in your app and start the agent.', }), @@ -283,13 +283,13 @@ export const createRackAgentInstructions = (apmServerUrl = '', secretToken = '') ElasticAPM.start( app: MySinatraApp, # ${i18n.translate( - 'apm.tutorial.rackClient.configure.commands.requiredComment', + 'apmOss.tutorial.rackClient.configure.commands.requiredComment', { defaultMessage: 'required', } )} config_file: '' # ${i18n.translate( - 'apm.tutorial.rackClient.configure.commands.optionalComment', + 'apmOss.tutorial.rackClient.configure.commands.optionalComment', { defaultMessage: 'optional, defaults to config/elastic_apm.yml', } @@ -301,20 +301,20 @@ export const createRackAgentInstructions = (apmServerUrl = '', secretToken = '') at_exit {curlyOpen} ElasticAPM.stop {curlyClose}`.split('\n'), }, { - title: i18n.translate('apm.tutorial.rackClient.createConfig.title', { + title: i18n.translate('apmOss.tutorial.rackClient.createConfig.title', { defaultMessage: 'Create config file', }), - textPre: i18n.translate('apm.tutorial.rackClient.createConfig.textPre', { + textPre: i18n.translate('apmOss.tutorial.rackClient.createConfig.textPre', { defaultMessage: 'Create a config file {configFile}:', values: { configFile: '`config/elastic_apm.yml`' }, }), commands: `# config/elastic_apm.yml: -# ${i18n.translate('apm.tutorial.rackClient.createConfig.commands.setServiceNameComment', { +# ${i18n.translate('apmOss.tutorial.rackClient.createConfig.commands.setServiceNameComment', { defaultMessage: 'Set service name - allowed characters: a-z, A-Z, 0-9, -, _ and space', })} # ${i18n.translate( - 'apm.tutorial.rackClient.createConfig.commands.defaultsToTheNameOfRackAppClassComment', + 'apmOss.tutorial.rackClient.createConfig.commands.defaultsToTheNameOfRackAppClassComment', { defaultMessage: "Defaults to the name of your Rack app's class.", } @@ -322,19 +322,19 @@ export const createRackAgentInstructions = (apmServerUrl = '', secretToken = '') # service_name: 'my-service' # ${i18n.translate( - 'apm.tutorial.rackClient.createConfig.commands.useIfApmServerRequiresTokenComment', + 'apmOss.tutorial.rackClient.createConfig.commands.useIfApmServerRequiresTokenComment', { defaultMessage: 'Use if APM Server requires a token', } )} # secret_token: '${secretToken}' -# ${i18n.translate('apm.tutorial.rackClient.createConfig.commands.setCustomApmServerComment', { +# ${i18n.translate('apmOss.tutorial.rackClient.createConfig.commands.setCustomApmServerComment', { defaultMessage: 'Set custom APM Server URL (default: {defaultServerUrl})', values: { defaultServerUrl: 'http://localhost:8200' }, })} # server_url: '${apmServerUrl || 'http://localhost:8200'}'`.split('\n'), - textPost: i18n.translate('apm.tutorial.rackClient.createConfig.textPost', { + textPost: i18n.translate('apmOss.tutorial.rackClient.createConfig.textPost', { defaultMessage: 'See the [documentation]({documentationLink}) for configuration options and advanced usage.\n\n', values: { @@ -346,10 +346,10 @@ export const createRackAgentInstructions = (apmServerUrl = '', secretToken = '') export const createJsAgentInstructions = (apmServerUrl = '') => [ { - title: i18n.translate('apm.tutorial.jsClient.enableRealUserMonitoring.title', { + title: i18n.translate('apmOss.tutorial.jsClient.enableRealUserMonitoring.title', { defaultMessage: 'Enable Real User Monitoring support in APM Server', }), - textPre: i18n.translate('apm.tutorial.jsClient.enableRealUserMonitoring.textPre', { + textPre: i18n.translate('apmOss.tutorial.jsClient.enableRealUserMonitoring.textPre', { defaultMessage: 'APM Server disables RUM support by default. See the [documentation]({documentationLink}) \ for details on how to enable RUM support.', @@ -360,10 +360,10 @@ for details on how to enable RUM support.', }), }, { - title: i18n.translate('apm.tutorial.jsClient.installDependency.title', { + title: i18n.translate('apmOss.tutorial.jsClient.installDependency.title', { defaultMessage: 'Set up the Agent as a dependency', }), - textPre: i18n.translate('apm.tutorial.jsClient.installDependency.textPre', { + textPre: i18n.translate('apmOss.tutorial.jsClient.installDependency.textPre', { defaultMessage: 'You can install the Agent as a dependency to your application with \ `npm install @elastic/apm-rum --save`.\n\n\ @@ -373,7 +373,7 @@ The Agent can then be initialized and configured in your application like this:' var apm = initApm({curlyOpen} // ${i18n.translate( - 'apm.tutorial.jsClient.installDependency.commands.setRequiredServiceNameComment', + 'apmOss.tutorial.jsClient.installDependency.commands.setRequiredServiceNameComment', { defaultMessage: 'Set required service name (allowed characters: a-z, A-Z, 0-9, -, _, and space)', @@ -382,7 +382,7 @@ var apm = initApm({curlyOpen} serviceName: 'your-app-name', // ${i18n.translate( - 'apm.tutorial.jsClient.installDependency.commands.setCustomApmServerUrlComment', + 'apmOss.tutorial.jsClient.installDependency.commands.setCustomApmServerUrlComment', { defaultMessage: 'Set custom APM Server URL (default: {defaultApmServerUrl})', values: { defaultApmServerUrl: 'http://localhost:8200' }, @@ -390,12 +390,12 @@ var apm = initApm({curlyOpen} )} serverUrl: '${apmServerUrl}', - // ${i18n.translate('apm.tutorial.jsClient.installDependency.commands.setServiceVersionComment', { + // ${i18n.translate('apmOss.tutorial.jsClient.installDependency.commands.setServiceVersionComment', { defaultMessage: 'Set service version (required for source map feature)', })} serviceVersion: '' {curlyClose})`.split('\n'), - textPost: i18n.translate('apm.tutorial.jsClient.installDependency.textPost', { + textPost: i18n.translate('apmOss.tutorial.jsClient.installDependency.textPost', { defaultMessage: 'Framework integrations, like React or Angular, have custom dependencies. \ See the [integration documentation]({docLink}) for more information.', @@ -406,10 +406,10 @@ See the [integration documentation]({docLink}) for more information.', }), }, { - title: i18n.translate('apm.tutorial.jsClient.scriptTags.title', { + title: i18n.translate('apmOss.tutorial.jsClient.scriptTags.title', { defaultMessage: 'Set up the Agent with Script Tags', }), - textPre: i18n.translate('apm.tutorial.jsClient.scriptTags.textPre', { + textPre: i18n.translate('apmOss.tutorial.jsClient.scriptTags.textPre', { defaultMessage: "Alternatively, you can use Script tags to set up and configure the Agent. \ Add a `