17 lines
311 B
Go
17 lines
311 B
Go
package observability
|
|||
|
|
|
||
|
|
import (
|
||
|
|
"context"
|
||
|
|
"testing"
|
||
|
|
)
|
||
|
|
|
||
|
|
func TestSetupTracingWithoutExporter(t *testing.T) {
|
||
|
|
provider, err := SetupTracing(context.Background(), "test-service", "test", "")
|
||
|
|
if err != nil {
|
||
|
|
t.Fatal(err)
|
||
|
|
}
|
||
|
|
if err := provider.Shutdown(context.Background()); err != nil {
|
||
|
|
t.Fatal(err)
|
||
|
|
}
|
||
|
|
}
|