Documentation ¶
Overview ¶
Package ctxmissing provides control over the behavior of the X-Ray SDK when subsegments are created without a provided parent segment.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var LogErrorStrategy = "LOG_ERROR"
LogErrorStrategy provides the AWS_XRAY_CONTEXT_MISSING environment variable value for enabling the log error context missing strategy.
var RuntimeErrorStrategy = "RUNTIME_ERROR"
RuntimeErrorStrategy provides the AWS_XRAY_CONTEXT_MISSING environment variable value for enabling the runtime error context missing strategy (panic).
Functions ¶
This section is empty.
Types ¶
type DefaultLogErrorStrategy ¶
type DefaultLogErrorStrategy struct{}
DefaultLogErrorStrategy implements the log error context missing strategy.
func NewDefaultLogErrorStrategy ¶
func NewDefaultLogErrorStrategy() *DefaultLogErrorStrategy
NewDefaultLogErrorStrategy initializes an instance of DefaultLogErrorStrategy.
func (*DefaultLogErrorStrategy) ContextMissing ¶
func (dl *DefaultLogErrorStrategy) ContextMissing(v interface{})
ContextMissing logs an error message when the segment context is missing.
type DefaultRuntimeErrorStrategy ¶
type DefaultRuntimeErrorStrategy struct{}
DefaultRuntimeErrorStrategy implements the runtime error context missing strategy.
func NewDefaultRuntimeErrorStrategy ¶
func NewDefaultRuntimeErrorStrategy() *DefaultRuntimeErrorStrategy
NewDefaultRuntimeErrorStrategy initializes an instance of DefaultRuntimeErrorStrategy.
func (*DefaultRuntimeErrorStrategy) ContextMissing ¶
func (dr *DefaultRuntimeErrorStrategy) ContextMissing(v interface{})
ContextMissing panics when the segment context is missing.