[APM] Set a valid service_name for python APM onboarding (#131959)

* Set a valid SERVICE_NAME for python APM onboarding

* Fix unit tests

* Update the examples for node and golang

* Revert "Update the examples for node and golang"

This reverts commit 5747d80f04.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Colton Myers 2022-05-11 12:06:48 -06:00 committed by GitHub
parent 327df57c8b
commit aa07c76d68
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View file

@ -31,7 +31,7 @@ ELASTIC_APM = {
defaultMessage: 'a-z, A-Z, 0-9, -, _, and space',
}
)}
'SERVICE_NAME': '',
'SERVICE_NAME': 'my_python_service',
# ${i18n.translate(
'xpack.apm.tutorial.djangoClient.configure.commands.useIfApmServerRequiresTokenComment',

View file

@ -38,7 +38,7 @@ app.config['ELASTIC_APM'] = {
defaultMessage: 'a-z, A-Z, 0-9, -, _, and space',
}
)}
'SERVICE_NAME': '',
'SERVICE_NAME': 'my_python_service',
# ${i18n.translate(
'xpack.apm.tutorial.flaskClient.configure.commands.useIfApmServerRequiresTokenComment',

View file

@ -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': '',
'SERVICE_NAME': 'my_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': '',
'SERVICE_NAME': 'my_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': '',
'SERVICE_NAME': 'my_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': '',
'SERVICE_NAME': 'my_python_service',
# Use if APM Server requires a secret token
'SECRET_TOKEN': 'foobar',