diff --git a/context/context.go b/context/context.go index d804168..465a763 100644 --- a/context/context.go +++ b/context/context.go @@ -18,6 +18,7 @@ func NewContext(parent Context) Context { } type Context interface { + Parent() Context SetAttribute(key string, value interface{}) GetAttribute(key string) (value interface{}) RemoveAttribute(key string) @@ -31,6 +32,10 @@ type defaultContext struct { mtx sync.RWMutex } +func (dc *defaultContext) Parent() Context { + return dc.Context +} + func (dc *defaultContext) SetAttribute(key string, value interface{}) { dc.checkInitialized()