Skip to content

Commit

Permalink
add request header for SLO provenance (#1617) (#1626)
Browse files Browse the repository at this point in the history
Co-authored-by: David Ellis <[email protected]>
  • Loading branch information
julienduchesne and ellisda committed Jun 14, 2024
1 parent c4449a2 commit 55cc616
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/provider/configure_clients.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ func createSLOClient(client *common.Client, providerConfig ProviderConfig) error
sloConfig.Host = client.GrafanaAPIURLParsed.Host
sloConfig.Scheme = client.GrafanaAPIURLParsed.Scheme
sloConfig.DefaultHeader["Authorization"] = "Bearer " + providerConfig.Auth.ValueString()
sloConfig.DefaultHeader["Grafana-Terraform-Provider"] = "true"
sloConfig.HTTPClient = getRetryClient(providerConfig)
client.SLOClient = slo.NewAPIClient(sloConfig)
return nil
Expand Down

0 comments on commit 55cc616

Please sign in to comment.