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

Added support to send a User-Agent header with current Terraform Provider Version to Instana #15

Merged
merged 3 commits into from
Jul 24, 2024

Conversation

rorywelch
Copy link
Contributor

REST-Client now sends a User-Agent header with the most recent Terraform Provider Version parsed from CHANGELOG.md

REST client now pulls terraform provider version from CHANGELOG.md and passes the current version e.g. v3.0.0 as the User-Agent header in each request.
Changed error handling so the app wouldn't exit if user-agent header value could not be read.
Added return statement to send a blank User-Agent header on failure to open CHANGELOG.md
@rorywelch rorywelch requested a review from ChinmayGitHub July 22, 2024 12:19
Copy link
Contributor

@ChinmayGitHub ChinmayGitHub left a comment

Choose a reason for hiding this comment

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

LGTM

@rorywelch rorywelch merged commit b7d55a3 into main Jul 24, 2024
2 checks passed
@rorywelch rorywelch deleted the user-agent-header branch July 24, 2024 11:27
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