SSE: improve error handling in DSNode (#71468)

* add data source uid to QueryError

* add error and datasource uid to tracing

* split queryDataResponseToResults to two functions one to extract frame from the result, and another to convert it

* propagate logger with context to convertDataFramesToResults
This commit is contained in:
Yuri Tseretyan
2023-07-12 14:59:02 -04:00
committed by GitHub
parent 64aa5465ac
commit 9e76d6372c
2 changed files with 49 additions and 22 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ import (
"go.opentelemetry.io/otel/attribute"
)
func shouldUseDataplane(frames data.Frames, logger *log.ConcreteLogger, disable bool) (dt data.FrameType, b bool, e error) {
func shouldUseDataplane(frames data.Frames, logger log.Logger, disable bool) (dt data.FrameType, b bool, e error) {
if disable {
return
}