datadog

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsEnabled

func IsEnabled() bool

func NewLogger

func NewLogger() ddtrace.Logger

func Service

func Service() string

func StartProfiler

func StartProfiler(ctx context.Context, profileOptions ...profiler.Option)

func StartProfilerWithOptions

func StartProfilerWithOptions(ctx context.Context, options *Options, profileOptions ...profiler.Option)

func StartTracer

func StartTracer(ctx context.Context, startOptions ...tracer.StartOption)

func StartTracerWithOptions

func StartTracerWithOptions(ctx context.Context, options *Options, startOptions ...tracer.StartOption)

Types

type Logger

type Logger struct {
}

func (*Logger) Log

func (l *Logger) Log(msg string)

type Options

type Options struct {
	Service       string
	Env           string
	Enabled       bool
	Tags          map[string]string
	Host          string
	Port          string
	LambdaMode    bool
	Analytics     bool
	AnalyticsRate float64
	DebugMode     bool
	DebugStack    bool
	HttpClient    client.Options
	Version       string
	Log           struct {
		Level string
	}
	Addr string
}

func NewOptions

func NewOptions() (*Options, error)

func NewOptionsWithPath

func NewOptionsWithPath(path string) (opts *Options, err error)

Jump to

Keyboard shortcuts

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