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

Better Artifact Telemetry + Increase Upload chunk size #535

Merged
merged 3 commits into from
Jul 30, 2020

Conversation

konradpabjan
Copy link
Contributor

When making any http calls during artifact upload or download, the user-agent string can be used to help differentiate between http-calls that get logged as part of internal telemetry. This PR changes the user-agent string to @actions/artifact-upload for any call that gets made during artifact upload and @actions/artifact-download for any call that gets made during download.

I really wanted to leverage the package version from package.json and then have the user-agent string be something like @actions/artifact-0.3.2-upload however there are a host of issues reading the version number from package.json since it's not included in the rootDir folder. More information here: https://stackoverflow.com/a/53836076

I'm also bumping up the upload chunk size from 4MB to 8MB to help improve artifact upload in GHES scenarios

@konradpabjan konradpabjan merged commit 3a9dc00 into main Jul 30, 2020
@thboop thboop deleted the konradpabjan/artifact-user-agent branch May 3, 2021 19:55
at-wat pushed a commit to at-wat/actions-toolkit that referenced this pull request Aug 31, 2023
* Differentiate user-agents for better internal telemetry

* Bump chunk size from 4 to 8 MB

* Update User-Agent Strings
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.

None yet

2 participants