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:
ismail simsek
2025-10-21 10:00:59 +02:00
committed by GitHub
co-authored by Gareth
parent ef2e62c852
commit 7c7c9490fb
3 changed files with 24 additions and 23 deletions
@@ -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)
}