"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.railsVariables = exports.railsLineNumbers = exports.railsHighlightLang = exports.rails = void 0; var _i18n = require("@kbn/i18n"); /* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ const railsVariables = secretToken => ({ ...(secretToken && { secretToken: 'secret_token' }), ...(!secretToken && { apiKey: 'api_key' }), apmServerUrl: 'server_url' }); exports.railsVariables = railsVariables; const railsHighlightLang = 'rb'; exports.railsHighlightLang = railsHighlightLang; const railsLineNumbers = () => ({ start: 1, highlight: '4, 7, 10, 13' }); exports.railsLineNumbers = railsLineNumbers; const rails = `# config/elastic_apm.yml: # {{serviceNameHint}} ${_i18n.i18n.translate('xpack.apm.onboarding.railsClient.createConfig.commands.defaultServiceName', { defaultMessage: 'Defaults to the name of your Rails app.' })} service_name: '' {{^secretToken}} # {{apiKeyHint}} api_key: '{{{apiKey}}}' {{/secretToken}} {{#secretToken}} # {{secretTokenHint}} secret_token: '{{{secretToken}}}' {{/secretToken}} # {{{serverUrlHint}}} server_url: '{{{apmServerUrl}}}' # {{{serviceEnvironmentHint}}} environment: ''`; exports.rails = rails;