Pyroscope: Add error source (#112645)
* set downstream errors in pyroscope * Update pkg/tsdb/grafana-pyroscope-datasource/instance.go Co-authored-by: Gareth <email@garethdawson.xyz> * Update pkg/tsdb/grafana-pyroscope-datasource/instance.go Co-authored-by: Gareth <email@garethdawson.xyz> * more error source --------- Co-authored-by: Gareth <email@garethdawson.xyz>
This commit is contained in:
@@ -542,7 +542,7 @@ func seriesToDataFrames(resp *SeriesResponse, withAnnotations bool, stepDuration
|
||||
if len(annotations) > 0 {
|
||||
frame, err := annotation.CreateAnnotationFrame(annotations)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
return nil, backend.DownstreamError(fmt.Errorf("error creating annotation frame: %w", err))
|
||||
}
|
||||
frames = append(frames, frame)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user