Skip to content

Commit 5747d80

Browse files
committed
Update the examples for node and golang
1 parent 7004424 commit 5747d80

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

x-pack/plugins/apm/public/tutorial/config_agent/commands/get_commands.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ describe('getCommands', () => {
122122
123123
// Override the service name from package.json
124124
// Allowed characters: a-z, A-Z, 0-9, -, _, and space
125-
serviceName: '',
125+
serviceName: 'my_node_service',
126126
127127
// Use if APM Server requires a secret token
128128
secretToken: '',
@@ -150,7 +150,7 @@ describe('getCommands', () => {
150150
151151
// Override the service name from package.json
152152
// Allowed characters: a-z, A-Z, 0-9, -, _, and space
153-
serviceName: '',
153+
serviceName: 'my_node_service',
154154
155155
// Use if APM Server requires a secret token
156156
secretToken: 'foobar',
@@ -422,7 +422,7 @@ describe('getCommands', () => {
422422
423423
# Set the service name. Allowed characters: # a-z, A-Z, 0-9, -, _, and space.
424424
# If ELASTIC_APM_SERVICE_NAME is not specified, the executable name will be used.
425-
export ELASTIC_APM_SERVICE_NAME=
425+
export ELASTIC_APM_SERVICE_NAME=my_go_service
426426
427427
# Set custom APM Server URL (default: http://localhost:8200)
428428
export ELASTIC_APM_SERVER_URL=
@@ -449,7 +449,7 @@ describe('getCommands', () => {
449449
450450
# Set the service name. Allowed characters: # a-z, A-Z, 0-9, -, _, and space.
451451
# If ELASTIC_APM_SERVICE_NAME is not specified, the executable name will be used.
452-
export ELASTIC_APM_SERVICE_NAME=
452+
export ELASTIC_APM_SERVICE_NAME=my_go_service
453453
454454
# Set custom APM Server URL (default: http://localhost:8200)
455455
export ELASTIC_APM_SERVER_URL=localhost:8220

x-pack/plugins/apm/public/tutorial/config_agent/commands/go.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export const go = `# ${i18n.translate(
2828
'If ELASTIC_APM_SERVICE_NAME is not specified, the executable name will be used.',
2929
}
3030
)}
31-
export ELASTIC_APM_SERVICE_NAME=
31+
export ELASTIC_APM_SERVICE_NAME=my_go_service
3232
3333
# ${i18n.translate(
3434
'xpack.apm.tutorial.goClient.configure.commands.setCustomApmServerUrlComment',

x-pack/plugins/apm/public/tutorial/config_agent/commands/node.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ var apm = require('elastic-apm-node').start({
2727
defaultMessage: 'Allowed characters: a-z, A-Z, 0-9, -, _, and space',
2828
}
2929
)}
30-
serviceName: '',
30+
serviceName: 'my_node_service',
3131
3232
// ${i18n.translate(
3333
'xpack.apm.tutorial.nodeClient.configure.commands.useIfApmRequiresTokenComment',

0 commit comments

Comments
 (0)