datadog

package
v0.1.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	PreferName      bool     `json:"prefer_name,omitempty"`
	IncludePath     bool     `json:"include_path,omitempty"`
	IncludeMethod   bool     `json:"include_method,omitempty"`
	ConstantTags    []string `json:"constant_tags,omitempty"`
	Host            string   `json:"host,omitempty"`
	Port            int      `json:"port,omitempty"`
	BatchName       string   `json:"name,omitempty"`
	BatchMaxSize    int      `json:"batch_max_size,omitempty"`
	MaxRetryCount   int      `json:"max_retry_count,omitempty"`
	RetryDelay      int      `json:"retry_delay,omitempty"`
	BufferDuration  int      `json:"buffer_duration,omitempty"`
	InactiveTimeout int      `json:"inactive_timeout,omitempty"`
	// contains filtered or unexported fields
}

func (*Config) UnmarshalJSON

func (c *Config) UnmarshalJSON(data []byte) error

type Metadata

type Metadata struct {
	Host         string   `json:"host,omitempty"`
	Port         int      `json:"port,omitempty"`
	Namespace    string   `json:"namespace,omitempty"`
	ConstantTags []string `json:"constant_tags,omitempty"`
}

type Plugin

type Plugin struct {
	base.BasePlugin

	BatchProcessor *logger_batch.Processor
	RouteID        string
	ServerAddr     string
	// contains filtered or unexported fields
}

func (*Plugin) Config

func (p *Plugin) Config() any

func (*Plugin) Handler

func (p *Plugin) Handler(next http.Handler) http.Handler

func (*Plugin) Init

func (p *Plugin) Init() error

func (*Plugin) LogCapturePolicy

func (p *Plugin) LogCapturePolicy() base.LogCapturePolicy

func (*Plugin) PostInit

func (p *Plugin) PostInit() error

func (*Plugin) RunLogPhase

func (p *Plugin) RunLogPhase(snapshot base.LogSnapshot) error

RunLogPhase emits the detached metric snapshot without consulting a live request or response writer. The metric payload intentionally mirrors the legacy Handler fields.

func (*Plugin) Send

func (p *Plugin) Send(entry metricEntry)

func (*Plugin) SetRouteContext

func (p *Plugin) SetRouteContext(routeID string, serverAddr string)

func (*Plugin) Stop

func (p *Plugin) Stop()

Jump to

Keyboard shortcuts

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