Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add user-agents to http requests sent by Package Analysis #1018

Merged
merged 5 commits into from
Feb 21, 2024
Merged

Conversation

calebbrown
Copy link
Contributor

Being a good API user means setting the user-agent field in outbound requests so our requests can be distinguished from others.

This change adds user-agent support.

Part of the implementation allows an "extra" component to be added to the user-agent. This is especially important as it allows our production environment to be distinguished from other runs.

To propagate this "extra" data to sandbox required some messing around with how environment variables are managed and configuration passed around in the worker process.

#1015

@calebbrown calebbrown merged commit f39055d into main Feb 21, 2024
11 checks passed
@calebbrown calebbrown deleted the user_agent branch February 21, 2024 04:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants