Skip to content

Commit 4fa9d94

Browse files
committed
feat(tasks): Run Jaeger by default on task telemetry:start
1 parent 54337f1 commit 4fa9d94

File tree

1 file changed

+8
-2
lines changed
  • local-run/scripts

1 file changed

+8
-2
lines changed

local-run/scripts/otlp

+8-2
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,13 @@ usage() {
5454
usage-start() {
5555
cat <<EOF
5656
$(format_title 'Syntax:')
57-
$(format_command "${SELF}") $(format_arg SERVICE...) $(format_opt_arg --new)
57+
$(format_command "${SELF}") $(format_opt_arg SERVICE...) $(format_opt_arg --new)
5858
Where $(format_arg SERVICE) is one of: ${SERVICES[@]}.
59+
Default: $(format_arg "${SERVICES[0]}")
5960
6061
$(format_title 'Usage:')
62+
You want to start any collector (default: $(service-name "${SERVICES[0]}")):
63+
$(format_command "${SELF%' --'}")
6164
You want to start $(service-name jaeger):
6265
$(format_command "${SELF:?}") $(format_arg jaeger)
6366
You want to (re)start $(service-name jaeger) and delete existing data:
@@ -368,7 +371,10 @@ source "${BASH_TOOLBOX:?}"/log.sh
368371

369372
if [ "$#" == 0 ]; then
370373
case "${ACTION}" in
371-
start) die "You must pass at least one service name (supported: ${SERVICES[@]})." ;;
374+
start)
375+
info "No service name passed, using $(service-name "${SERVICES[0]}") as a default."
376+
set -- "${SERVICES[0]}"
377+
;;
372378
stop)
373379
info 'No service name passed, stopping all services.'
374380
set -- "${SERVICES[@]}"

0 commit comments

Comments
 (0)