Skip to content

CLI: enrich User-Agent when making API requests #1215

@johnstcn

Description

@johnstcn

While troubleshooting an unrelated issue, we saw that the User-Agent set by the CLI was simply Go-http-client/1.1.

We can enrich this with more information, such as:

  • Coder username/email
  • CLI subcommand (e.g. coder ssh)
  • Coder version

This should help platform administrators to track down where API requests are coming from.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions