ctxmissing

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 30, 2017 License: Apache-2.0 Imports: 1 Imported by: 0

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

View Source
var LogErrorStrategy = "LOG_ERROR"

LogErrorStrategy provides the AWS_XRAY_CONTEXT_MISSING environment variable value for enabling the log error context missing strategy.

View Source
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.

type Strategy

type Strategy interface {
	ContextMissing(v interface{})
}

Strategy provides an interface for implementing context missing strategies.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL