parent
307d77115c
commit
6de48c55c7
@ -1,3 +1,3 @@
|
||||
package gotrace_id
|
||||
|
||||
const Version = "1.0.3"
|
||||
const Version = "1.0.4"
|
||||
|
@ -1,11 +1,15 @@
|
||||
package gotrace_id
|
||||
|
||||
import (
|
||||
"context"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestContext(t *testing.T) {
|
||||
ctx := CustomTraceIdContext()
|
||||
t.Log(ctx)
|
||||
t.Log(GetTraceIdContext(ctx))
|
||||
ctx1 := CustomTraceIdContext()
|
||||
t.Log(ctx1)
|
||||
t.Log(GetTraceIdContext(ctx1))
|
||||
ctx2 := context.Background()
|
||||
t.Log(ctx2)
|
||||
t.Log(GetTraceIdContext(ctx2))
|
||||
}
|
||||
|
Loading…
Reference in new issue