translator

package
v0.106.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeGauge string = "gauge"
	TypeRate  string = "rate"
	TypeCount string = "count"
)

Variables

This section is empty.

Functions

func GetBuffer

func GetBuffer() *bytes.Buffer

func HandleTracesPayload

func HandleTracesPayload(req *http.Request) (tp []*pb.TracerPayload, err error)

func PutBuffer

func PutBuffer(buffer *bytes.Buffer)

func ToTraces

func ToTraces(payload *pb.TracerPayload, req *http.Request) ptrace.Traces

Types

type MetricsTranslator

type MetricsTranslator struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewMetricsTranslator

func NewMetricsTranslator(buildInfo component.BuildInfo) *MetricsTranslator

func (*MetricsTranslator) TranslateSeriesV1

func (mt *MetricsTranslator) TranslateSeriesV1(series SeriesList) pmetric.Metrics

type SeriesList

type SeriesList struct {
	Series []datadogV1.Series `json:"series"`
}

type StringPool

type StringPool struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func (*StringPool) Intern

func (s *StringPool) Intern(str string) string

Jump to

Keyboard shortcuts

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