Documentation ¶
Index ¶
- func IsProfilerEnabled() bool
- func IsTracerEnabled() bool
- func NewLogger() ddtrace.Logger
- func Service() string
- func StartProfiler(ctx context.Context, profileOptions ...profiler.Option)
- func StartProfilerWithOptions(ctx context.Context, options *Options, profileOptions ...profiler.Option)
- func StartTracer(ctx context.Context, startOptions ...tracer.StartOption)
- func StartTracerWithOptions(ctx context.Context, options *Options, startOptions ...tracer.StartOption)
- type Logger
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsProfilerEnabled ¶
func IsProfilerEnabled() bool
IsProfilerEnabled returns config value from key ignite.datadog.profiler.enabled where default is true.
func IsTracerEnabled ¶
func IsTracerEnabled() bool
IsTracerEnabled returns config value from key ignite.datadog.trace.enabled where default is true.
func Service ¶
func Service() string
Service returns config value from key ignite.datadog.service where default is empty.
func StartProfiler ¶
StartProfiler starts the profiler.
func StartProfilerWithOptions ¶
func StartProfilerWithOptions(ctx context.Context, options *Options, profileOptions ...profiler.Option)
StartProfilerWithOptions start the profiler with options.
func StartTracer ¶
func StartTracer(ctx context.Context, startOptions ...tracer.StartOption)
StartTracer starts the tracer like StartTraceWithOptions but with default Options.
func StartTracerWithOptions ¶
func StartTracerWithOptions(ctx context.Context, options *Options, startOptions ...tracer.StartOption)
StartTracerWithOptions starts the tracer with the given set of options. It will stop and replace any running tracer, meaning that calling it several times will result in a restart of the tracer by replacing the current instance with a new one.
Types ¶
type Options ¶
type Options struct { Service string Env string Tracer struct { Enabled bool } Profiler struct { 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 ¶
NewOptions returns options from config file or environment vars.