datadog

package
v0.0.0-...-d14a738 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClientWorker

func NewClientWorker(parentLogger logger.Logger, args base.ChunkConsumerArgs, metricCreator promreg.MetricCreator, cfg UpstreamConfig) base.ChunkConsumer

func NewEventSerializer

func NewEventSerializer(parentLogger logger.Logger, schema base.LogSchema, config SerializationConfig, ddtags string) base.LogSerializer

Types

type Config

type Config struct {
	bconfig.Header `yaml:",inline"`
	Serialization  SerializationConfig `yaml:"serialization"`
	Upstream       UpstreamConfig      `yaml:"upstream"`
}

func (*Config) DecodeChunkToJSON

func (cfg *Config) DecodeChunkToJSON(chunk base.LogChunk, separator []byte, indented bool, writer io.Writer) (base.LogChunkInfo, error)

func (*Config) MatchChunkID

func (cfg *Config) MatchChunkID(chunkID string) bool

func (*Config) NewChunkMaker

func (cfg *Config) NewChunkMaker(parentLogger logger.Logger, tag string) base.LogChunkMaker

func (*Config) NewForwarder

func (cfg *Config) NewForwarder(parentLogger logger.Logger, args base.ChunkConsumerArgs, metricCreator promreg.MetricCreator) base.ChunkConsumer

func (*Config) NewSerializer

func (cfg *Config) NewSerializer(parentLogger logger.Logger, schema base.LogSchema, tag string) base.LogSerializer

func (*Config) VerifyConfig

func (cfg *Config) VerifyConfig(schema base.LogSchema) error

type SerializationConfig

type SerializationConfig struct {
	HiddenFields []string `yaml:"hiddenFields"`
}

type UpstreamConfig

type UpstreamConfig struct {
	Address     string        `yaml:"address"`
	HTTPTimeout time.Duration `yaml:"httpTimeout"`
}

Jump to

Keyboard shortcuts

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