From a56d818081996fc777403ca9fb3ef92a4dc6f032 Mon Sep 17 00:00:00 2001 From: Colton Myers Date: Tue, 17 May 2022 12:45:27 -0600 Subject: [PATCH] Comment out SERVICE_NAME for django/flask onboarding --- .../apm/public/tutorial/config_agent/commands/django.ts | 2 +- .../apm/public/tutorial/config_agent/commands/flask.ts | 2 +- .../tutorial/config_agent/commands/get_commands.test.ts | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/x-pack/plugins/apm/public/tutorial/config_agent/commands/django.ts b/x-pack/plugins/apm/public/tutorial/config_agent/commands/django.ts index ac1b96e753535..047b8808f13ce 100644 --- a/x-pack/plugins/apm/public/tutorial/config_agent/commands/django.ts +++ b/x-pack/plugins/apm/public/tutorial/config_agent/commands/django.ts @@ -31,7 +31,7 @@ ELASTIC_APM = { defaultMessage: 'a-z, A-Z, 0-9, -, _, and space', } )} -'SERVICE_NAME': 'my_python_service', +#'SERVICE_NAME': 'unknown-python-service', # ${i18n.translate( 'xpack.apm.tutorial.djangoClient.configure.commands.useIfApmServerRequiresTokenComment', diff --git a/x-pack/plugins/apm/public/tutorial/config_agent/commands/flask.ts b/x-pack/plugins/apm/public/tutorial/config_agent/commands/flask.ts index 305e9390356a3..51e69b08a24a5 100644 --- a/x-pack/plugins/apm/public/tutorial/config_agent/commands/flask.ts +++ b/x-pack/plugins/apm/public/tutorial/config_agent/commands/flask.ts @@ -38,7 +38,7 @@ app.config['ELASTIC_APM'] = { defaultMessage: 'a-z, A-Z, 0-9, -, _, and space', } )} -'SERVICE_NAME': 'my_python_service', +#'SERVICE_NAME': 'unknown-python-service', # ${i18n.translate( 'xpack.apm.tutorial.flaskClient.configure.commands.useIfApmServerRequiresTokenComment', diff --git a/x-pack/plugins/apm/public/tutorial/config_agent/commands/get_commands.test.ts b/x-pack/plugins/apm/public/tutorial/config_agent/commands/get_commands.test.ts index 4c7b311d935d0..7eddb706cb531 100644 --- a/x-pack/plugins/apm/public/tutorial/config_agent/commands/get_commands.test.ts +++ b/x-pack/plugins/apm/public/tutorial/config_agent/commands/get_commands.test.ts @@ -181,7 +181,7 @@ describe('getCommands', () => { ELASTIC_APM = { # Set the required service name. Allowed characters: # a-z, A-Z, 0-9, -, _, and space - 'SERVICE_NAME': 'my_python_service', + #'SERVICE_NAME': 'unknown-python-service', # Use if APM Server requires a secret token 'SECRET_TOKEN': '', @@ -219,7 +219,7 @@ describe('getCommands', () => { ELASTIC_APM = { # Set the required service name. Allowed characters: # a-z, A-Z, 0-9, -, _, and space - 'SERVICE_NAME': 'my_python_service', + #'SERVICE_NAME': 'unknown-python-service', # Use if APM Server requires a secret token 'SECRET_TOKEN': 'foobar', @@ -257,7 +257,7 @@ describe('getCommands', () => { app.config['ELASTIC_APM'] = { # Set the required service name. Allowed characters: # a-z, A-Z, 0-9, -, _, and space - 'SERVICE_NAME': 'my_python_service', + #'SERVICE_NAME': 'unknown-python-service', # Use if APM Server requires a secret token 'SECRET_TOKEN': '', @@ -292,7 +292,7 @@ describe('getCommands', () => { app.config['ELASTIC_APM'] = { # Set the required service name. Allowed characters: # a-z, A-Z, 0-9, -, _, and space - 'SERVICE_NAME': 'my_python_service', + #'SERVICE_NAME': 'unknown-python-service', # Use if APM Server requires a secret token 'SECRET_TOKEN': 'foobar',