Documentation
¶
Index ¶
- func DiscardLogger() tracer.Logger
- func SetGlobalAnalyticsRate(t *testing.T, val float64)
- func SetGlobalDogstatsdAddr(t *testing.T, val string)
- func SetGlobalHeaderTags(t *testing.T, headers ...string)
- func SetGlobalServiceName(t *testing.T, val string)
- func SetPropagatingTag(t testing.TB, ctx *tracer.SpanContext, k, v string)
- func StartAppSec(t *testing.T, opts ...config.StartOption)
- func StartAppSecBench(b *testing.B)
- type MockStatsdClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DiscardLogger ¶
func SetGlobalAnalyticsRate ¶
func SetGlobalDogstatsdAddr ¶
func SetGlobalHeaderTags ¶
func SetGlobalServiceName ¶
func SetPropagatingTag ¶
func SetPropagatingTag(t testing.TB, ctx *tracer.SpanContext, k, v string)
SetPropagatingTag sets a tag on the given span context. It assumes it comes from a span, so it has a trace attached to it.
func StartAppSec ¶
func StartAppSec(t *testing.T, opts ...config.StartOption)
func StartAppSecBench ¶
Types ¶
type MockStatsdClient ¶
type MockStatsdClient = statsdtest.TestStatsdClient
func NewMockStatsdClient ¶
func NewMockStatsdClient() *MockStatsdClient
Directories
¶
Path | Synopsis |
---|---|
Package testtracer provides a wrapper over the ddtrace/tracer package with a mocked transport that allows to inspect traces while keeping the rest of the tracer logic the same.
|
Package testtracer provides a wrapper over the ddtrace/tracer package with a mocked transport that allows to inspect traces while keeping the rest of the tracer logic the same. |
Click to show internal directories.
Click to hide internal directories.