Skip to content

Commit

Permalink
Merge pull request #123 from jfrog/add-send-usage
Browse files Browse the repository at this point in the history
Add usage sending func to provider
  • Loading branch information
alexhung authored Aug 22, 2024
2 parents 498a215 + 9173db7 commit 93aaadf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/platform/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,9 @@ func (p *PlatformProvider) Configure(ctx context.Context, req provider.Configure
}
}

featureUsage := fmt.Sprintf("Terraform/%s", req.TerraformVersion)
go util.SendUsage(ctx, platformClient.R(), productId, featureUsage)

meta := PlatformProviderMetadata{
ProviderMetadata: util.ProviderMetadata{
Client: platformClient,
Expand Down

0 comments on commit 93aaadf

Please sign in to comment.