SQL Expressions: Add internal GMS traces (#104836)

get trace from inside GMS
This commit is contained in:
Kyle Brandt
2025-05-09 14:48:47 -04:00
committed by GitHub
parent feb1ac5ba7
commit 6a6ba723a9
4 changed files with 49 additions and 11 deletions
+2 -1
View File
@@ -7,12 +7,13 @@ import (
"fmt"
"github.com/grafana/grafana-plugin-sdk-go/data"
"github.com/grafana/grafana/pkg/infra/tracing"
)
type DB struct{}
// Stub out the QueryFrames method for ARM builds
// See github.com/dolthub/go-mysql-server/issues/2837
func (db *DB) QueryFrames(_ context.Context, _, _ string, _ []*data.Frame) (*data.Frame, error) {
func (db *DB) QueryFrames(_ context.Context, _ tracing.Tracer, _, _ string, _ []*data.Frame) (*data.Frame, error) {
return nil, fmt.Errorf("sql expressions not supported in arm")
}