Skip to content

pickme-lk/traceable-context

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Traceable Context

Traceable Context is a wrapper around go context which will provide a way to share a traceable UUID between different contexts

  • New context
    ctx := traceable_context.WithUUID(uuid.New())
  • Context from a parent context
    parent := contect.Background()
    ctx := traceable_context.FromContextWithUUID(parent, uuid.New())