Debian Codegraph @

instrumentation/github.com/aws/aws-sdk-go-v2/otelaws/config_test.go

raw
1 // Copyright The OpenTelemetry Authors
2 // SPDX-License-Identifier: Apache-2.0
3
4 package otelaws
5
6 import (
7 "testing"
8
9 "github.com/stretchr/testify/assert"
10 "go.opentelemetry.io/otel"
11 )
12
13 func TestWithTextMapPropagator(t *testing.T) {
14 cfg := config{}
15 propagator := otel.GetTextMapPropagator()
16
17 option := WithTextMapPropagator(propagator)
18 option.apply(&cfg)
19
20 assert.Equal(t, cfg.TextMapPropagator, propagator)
21 }