mirror of
https://github.com/pomerium/pomerium.git
synced 2025-06-28 23:48:30 +02:00
wip: new tracing system
This commit is contained in:
parent
eb57fa7a8b
commit
e221c8af84
83 changed files with 1414 additions and 1285 deletions
|
@ -4,6 +4,7 @@ import (
|
|||
"context"
|
||||
"time"
|
||||
|
||||
"github.com/pomerium/pomerium/internal/telemetry/trace"
|
||||
"github.com/pomerium/pomerium/internal/testenv"
|
||||
"github.com/pomerium/pomerium/pkg/grpcutil"
|
||||
"google.golang.org/grpc"
|
||||
|
@ -12,6 +13,11 @@ import (
|
|||
)
|
||||
|
||||
func WaitStartupComplete(env testenv.Environment, timeout ...time.Duration) time.Duration {
|
||||
if env.GetState() == testenv.NotRunning {
|
||||
panic("test bug: WaitStartupComplete called before starting the test environment")
|
||||
}
|
||||
_, span := trace.Continue(env.Context(), "snippets.WaitStartupComplete")
|
||||
defer span.End()
|
||||
start := time.Now()
|
||||
recorder := env.NewLogRecorder()
|
||||
if len(timeout) == 0 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue