mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-21 21:17:13 +02:00
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:
parent
e1d84a1dde
commit
8738066ce4
19 changed files with 569 additions and 214 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue