Skip to content

Ask for a collector in the installer - #297

Closed
unflxw wants to merge 1 commit into
mainfrom
cli-installer-collector
Closed

unflxw wants to merge 1 commit into
mainfrom
cli-installer-collector

Conversation

@unflxw

@unflxw unflxw commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

Implements collector mode for the installer, as suggested in https://github.com/appsignal/appsignal-docs/pull/339#pullrequestreview-5365577616.

After the push API key, appsignal install asks for a collector
endpoint and links to the page where a hosted collector is created.
Logging and distributed tracing need a collector, so an empty answer
asks for confirmation before going on without one. With an endpoint, it
also asks for a service name, and writes both to __appsignal__.py.

@backlog-helper

backlog-helper Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

鉁旓笍 All good!

New issue guide | Backlog management | Rules | Feedback

After the push API key, `appsignal install` asks for a collector
endpoint and links to the page where a hosted collector is created.
Logging and distributed tracing need a collector, so an empty answer
asks for confirmation before going on without one. With an endpoint, it
also asks for a service name, and writes both to `__appsignal__.py`.
@unflxw
unflxw force-pushed the cli-installer-collector branch from 1d7e630 to 36d1e17 Compare October 1, 2026 15:43
@unflxw unflxw closed this Oct 1, 2026
Comment on lines +72 to +73
options["collector_endpoint"] = collector_endpoint
options["service_name"] = self._service_name()

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These only get asked for during as a prompt when you run the installer, right?
We should also add them to the CLI options, and help text output, so all the inputs for the installer can be given via both methods.

Comment on lines +111 to +115
def _input_should_continue_without_collector(self) -> bool:
response = input(
"Are you sure? Without a collector, logging and distributed tracing"
" won't work. Continue without one? (y/N): "
)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would want to flip the behavior for now so that collector mode is not the default, but when they accept the prompt if they want logging and distributed tracing we ask them for the collector details.

@tombruijn tombruijn added the enhancement An improvement to an existing feature. label Oct 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement An improvement to an existing feature.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants