Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TraceableContext ¶
TraceableContext contains a stack which holds the sentry span context information. Not thread safe.
func NewTraceableContext ¶
func NewTraceableContext(ctx context.Context) *TraceableContext
NewTraceableContext return a traceable context which can hold different level of span information. This function Should be called in the upper layer only (handler, middleware...) and the lower layer reuse this context to create a hierarchy span tree.
func (*TraceableContext) Pop ¶
func (c *TraceableContext) Pop() context.Context
func (*TraceableContext) Push ¶
func (c *TraceableContext) Push(ctx context.Context)
Click to show internal directories.
Click to hide internal directories.