mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-24 14:37:12 +02:00
fix testcontainers docker client using the global tracer provider (#5440)
This commit is contained in:
parent
6ea51149f9
commit
c307ca806a
3 changed files with 38 additions and 0 deletions
|
@ -6,8 +6,10 @@ import (
|
|||
|
||||
"github.com/minio/minio-go/v7"
|
||||
"github.com/minio/minio-go/v7/pkg/credentials"
|
||||
"github.com/pomerium/pomerium/internal/telemetry/trace"
|
||||
"github.com/testcontainers/testcontainers-go"
|
||||
"github.com/testcontainers/testcontainers-go/wait"
|
||||
oteltrace "go.opentelemetry.io/otel/trace"
|
||||
)
|
||||
|
||||
// WithTestMinIO starts a test MinIO server
|
||||
|
@ -15,6 +17,7 @@ func WithTestMinIO(t *testing.T, bucket string, handler func(endpoint string)) {
|
|||
t.Helper()
|
||||
|
||||
ctx := GetContext(t, maxWait)
|
||||
ctx = oteltrace.ContextWithSpan(ctx, trace.ValidNoopSpan{})
|
||||
|
||||
container, err := testcontainers.GenericContainer(ctx, testcontainers.GenericContainerRequest{
|
||||
ContainerRequest: testcontainers.ContainerRequest{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue