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

Log SDK Version Information #130

Open
bflad opened this issue Dec 23, 2021 · 0 comments
Open

Log SDK Version Information #130

bflad opened this issue Dec 23, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@bflad
Copy link
Contributor

bflad commented Dec 23, 2021

Version

v0.5.0

Use-cases

Providers can be running a variety of SDK packages and versions. Similar to the Terraform CLI:

2021-12-23T16:20:04.565-0500 [INFO]  Terraform version: 1.1.2

It would be great to include SDK version information in the logging.

Attempted Solutions

Asking folks after the fact which SDK version is involved, which might require spelunking which provider version was being used then which SDK version was being used with that provider version.

Proposal

Create a version or meta package which contains the release version information. Ensure release process appropriately updates this information.

Once available, use that version information to output an informational log:

tfsdklog.Info(ctx, "terraform-plugin-go version: "+meta.SDKVersionString()))

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant