Skip to content

Log SDK Version Information #839

@bflad

Description

@bflad

SDK version

v2.10.1

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

The meta.SDKVersionString is kept up to date with release version information. Use that to output an informational log:

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

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions