testutils

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TestAttributes = map[string]string{"datadog.host.name": "custom-hostname"}
	TestMetrics    = newMetricsWithAttributeMap(TestAttributes)
	TestTraces     = newTracesWithAttributeMap(TestAttributes)
)

Functions

func NewAttributeMap added in v0.14.0

func NewAttributeMap(mp map[string]string) pdata.AttributeMap

NewAttributeMap creates a new attribute map (string only) from a Go map

Types

type DatadogServer added in v0.20.0

type DatadogServer struct {
	*httptest.Server
	MetadataChan chan []byte
}

func DatadogServerMock

func DatadogServerMock() *DatadogServer

DatadogServerMock mocks a Datadog backend server

Jump to

Keyboard shortcuts

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