backport from v3
Some checks failed
/ autoupdate (push) Failing after 1m3s

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2024-03-06 01:17:19 +03:00
parent 1cbab38d24
commit 7ef5c5d804
5 changed files with 56 additions and 45 deletions

View File

@@ -27,12 +27,12 @@ func TestLoggerWithTracer(t *testing.T) {
logger.Error(ctx, "my test error", fmt.Errorf("error"))
if !strings.Contains(buf.String(), span.TraceID()) {
t.Fatalf("log does not contains tracer id: %s", buf.Bytes())
t.Fatalf("log does not contains trace id: %s", buf.Bytes())
}
_, _ = tr.Start(ctx, "test2")
for _, s := range tr.Spans() {
t.Logf("span %#+v\n", s)
_ = s
}
}