# Packages
Package traceserver is a mocked APM trace server that calls a handler for each spanlists payload it gets.
# Functions
ConvertEvent converts a stats event to a statsd (datadog) event.
MustNew returns a new stats collector from a config, but panics on error.
New returns a new stats collector from a config.
NewTracer returns a new tracer.
OptTraceAgentAddr returns a dd tracer start option that sets the agent addr.
OptTraceConfig sets relevant fields from the datadog config.
OptTraceHostname returns a dd tracer start option that sets the service hostname.
OptTraceLog returns an option that sets the log output.
OptTraceSampleRate returns a dd tracer start option that sets trace sampler with a given rate.
OptTraceServiceEnv returns a dd tracer start option that sets the service environment.
OptTraceServiceName returns a dd tracer start option that sets the service.
OptTraceVersion returns a dd tracer start option that sets the service version.
UseProfiler returns if profiling is enabled and the profiler address is configured.
UseTracing returns if tracing is enabled and the trace address is configured.
# Constants
DefaultAddress is the default address for datadog.
DefaultDatadogBufferDepth is the default number of statsd messages to buffer.
DefaultPort is the default port.
DefaultProfilingEnabled is the default value for profiling enabled.
DefaultTracePort is the default trace port.
DefaultTraceSampleRate returns the default trace sample rate of 25%.
DefaultTracingEnabled is the default value for tracing enabled.
Default Tags.
Default Tags.
Default Tags.
# Structs
Collector is a class that wraps the statsd collector we're using.
Config is the datadog config.
TracerOptions are all the options we can set when creating a tracer.
# Type aliases
RateSampler samples from a sample rate.
TracerOption mutates tracer options.