pkg/tsdb: Check errors (#19837)

Check errors in pkg/tsdb.
This commit is contained in:
Arve Knudsen
2019-10-22 16:16:53 +02:00
committed by GitHub
parent 79cbe191b6
commit bb50fc5965
10 changed files with 40 additions and 20 deletions
+4 -2
View File
@@ -82,10 +82,12 @@ func (e *GraphiteExecutor) Query(ctx context.Context, dsInfo *models.DataSource,
defer span.Finish()
opentracing.GlobalTracer().Inject(
if err := opentracing.GlobalTracer().Inject(
span.Context(),
opentracing.HTTPHeaders,
opentracing.HTTPHeadersCarrier(req.Header))
opentracing.HTTPHeadersCarrier(req.Header)); err != nil {
return nil, err
}
res, err := ctxhttp.Do(ctx, httpClient, req)
if err != nil {