testutils

package
v2.2.3 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2025 License: Apache-2.0, BSD-3-Clause, Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DiscardLogger

func DiscardLogger() tracer.Logger

func SetGlobalAnalyticsRate

func SetGlobalAnalyticsRate(t *testing.T, val float64)

func SetGlobalDogstatsdAddr

func SetGlobalDogstatsdAddr(t *testing.T, val string)

func SetGlobalHeaderTags

func SetGlobalHeaderTags(t *testing.T, headers ...string)

func SetGlobalServiceName

func SetGlobalServiceName(t *testing.T, val string)

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

func StartAppSecBench(b *testing.B)

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.

Jump to

Keyboard shortcuts

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