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