Tempo: set authentication header properly (#31699)

This commit is contained in:
Zoltán Bedi 2021-03-04 20:39:01 +01:00 committed by GitHub
parent 862f09376f
commit 53d4acdad2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -60,6 +60,10 @@ func (e *tempoExecutor) Query(ctx context.Context, dsInfo *models.DataSource, ts
return nil, err
}
if dsInfo.BasicAuth {
req.SetBasicAuth(dsInfo.BasicAuthUser, dsInfo.DecryptedBasicAuthPassword())
}
req.Header.Set("Accept", "application/protobuf")
resp, err := e.httpClient.Do(req)