storage: add sync querier (#5570)

* storage: add fallback querier

* storage: add sync querier

* storage: add typed querier

* use synced querier
This commit is contained in:
Caleb Doxsey 2025-04-23 10:15:48 -06:00 committed by GitHub
parent e1d84a1dde
commit 8738066ce4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
19 changed files with 569 additions and 214 deletions

View file

@ -58,12 +58,13 @@ func TestQueryTracing(t *testing.T) {
results := tracetest.NewTraceResults(receiver.FlushResourceSpans())
traces, exists := results.GetTraces().ByParticipant["Data Broker"]
require.True(t, exists)
require.Len(t, traces, 1)
var found bool
for _, span := range traces[0].Spans {
if span.Scope.GetName() == "github.com/exaring/otelpgx" {
found = true
break
for _, trace := range traces {
for _, span := range trace.Spans {
if span.Scope.GetName() == "github.com/exaring/otelpgx" {
found = true
break
}
}
}
assert.True(t, found, "no spans with otelpgx scope found")