Documentation ¶
Index ¶
- Constants
- func GetBuffer() *bytes.Buffer
- func HandleTracesPayload(req *http.Request) (tp []*pb.TracerPayload, err error)
- func PutBuffer(buffer *bytes.Buffer)
- func ToTraces(payload *pb.TracerPayload, req *http.Request) ptrace.Traces
- type DDInfo
- type MetricsTranslator
- func (mt *MetricsTranslator) HandleSeriesV2Payload(req *http.Request) (mp []*gogen.MetricPayload_MetricSeries, err error)
- func (mt *MetricsTranslator) HandleSketchesPayload(req *http.Request) (sp []gogen.SketchPayload_Sketch, err error)
- func (mt *MetricsTranslator) TranslateSeriesV1(series SeriesList) pmetric.Metrics
- func (mt *MetricsTranslator) TranslateSeriesV2(series []*gogen.MetricPayload_MetricSeries) pmetric.Metrics
- func (mt *MetricsTranslator) TranslateServices(services []ServiceCheck) pmetric.Metrics
- func (mt *MetricsTranslator) TranslateSketches(sketches []gogen.SketchPayload_Sketch) pmetric.Metrics
- type ReducedConfig
- type ReducedObfuscationConfig
- type SeriesList
- type ServiceCheck
- type StatsTranslator
- type StringPool
Constants ¶
View Source
const ( TypeGauge string = "gauge" TypeRate string = "rate" TypeCount string = "count" )
Variables ¶
This section is empty.
Functions ¶
func HandleTracesPayload ¶
func HandleTracesPayload(req *http.Request) (tp []*pb.TracerPayload, err error)
Types ¶
type MetricsTranslator ¶
func NewMetricsTranslator ¶
func NewMetricsTranslator(buildInfo component.BuildInfo) *MetricsTranslator
func (*MetricsTranslator) HandleSeriesV2Payload ¶ added in v0.108.0
func (mt *MetricsTranslator) HandleSeriesV2Payload(req *http.Request) (mp []*gogen.MetricPayload_MetricSeries, err error)
func (*MetricsTranslator) HandleSketchesPayload ¶ added in v0.109.0
func (mt *MetricsTranslator) HandleSketchesPayload(req *http.Request) (sp []gogen.SketchPayload_Sketch, err error)
Unmarshal the sketch payload, which contains the underlying Dogsketch structure used for the translation
func (*MetricsTranslator) TranslateSeriesV1 ¶
func (mt *MetricsTranslator) TranslateSeriesV1(series SeriesList) pmetric.Metrics
func (*MetricsTranslator) TranslateSeriesV2 ¶ added in v0.108.0
func (mt *MetricsTranslator) TranslateSeriesV2(series []*gogen.MetricPayload_MetricSeries) pmetric.Metrics
func (*MetricsTranslator) TranslateServices ¶ added in v0.109.0
func (mt *MetricsTranslator) TranslateServices(services []ServiceCheck) pmetric.Metrics
More information on Datadog service checks: https://docs.datadoghq.com/api/latest/service-checks/
func (*MetricsTranslator) TranslateSketches ¶ added in v0.109.0
func (mt *MetricsTranslator) TranslateSketches(sketches []gogen.SketchPayload_Sketch) pmetric.Metrics
type ReducedConfig ¶ added in v0.108.0
type ReducedConfig struct { DefaultEnv string `json:"default_env"` TargetTPS float64 `json:"target_tps"` MaxEPS float64 `json:"max_eps"` ReceiverPort int `json:"receiver_port"` ReceiverSocket string `json:"receiver_socket"` ConnectionLimit int `json:"connection_limit"` ReceiverTimeout int `json:"receiver_timeout"` MaxRequestBytes int64 `json:"max_request_bytes"` StatsdPort int `json:"statsd_port"` MaxMemory float64 `json:"max_memory"` MaxCPU float64 `json:"max_cpu"` AnalyzedSpansByService map[string]map[string]float64 `json:"analyzed_spans_by_service"` Obfuscation ReducedObfuscationConfig `json:"obfuscation"` }
type ReducedObfuscationConfig ¶ added in v0.108.0
type ReducedObfuscationConfig struct { ElasticSearch bool `json:"elastic_search"` Mongo bool `json:"mongo"` SQLExecPlan bool `json:"sql_exec_plan"` SQLExecPlanNormalize bool `json:"sql_exec_plan_normalize"` HTTP obfuscate.HTTPConfig `json:"http"` RemoveStackTraces bool `json:"remove_stack_traces"` Redis obfuscate.RedisConfig `json:"redis"` Memcached obfuscate.MemcachedConfig `json:"memcached"` }
type SeriesList ¶
type ServiceCheck ¶ added in v0.109.0
type StatsTranslator ¶ added in v0.108.0
type StatsTranslator struct {
// contains filtered or unexported fields
}
func NewStatsTranslator ¶ added in v0.108.0
func NewStatsTranslator() *StatsTranslator
func (*StatsTranslator) TranslateStats ¶ added in v0.108.0
func (st *StatsTranslator) TranslateStats(clientStats *pb.ClientStatsPayload, lang, tracerVersion string) (pmetric.Metrics, error)
type StringPool ¶
func (*StringPool) Intern ¶
func (s *StringPool) Intern(str string) string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.