Documentation
¶
Overview ¶
Package logsagentexporter contains a logs exporter which forwards logs to a channel.
Index ¶
Constants ¶
View Source
const ( // TypeStr defines the logsagent exporter type string. TypeStr = "logsagent" // LogSourceName specifies the Datadog source tag value to be added to logs sent by the logs agent exporter. LogSourceName = "otlp_log_ingestion" )
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶
NewFactory creates a new logsagentexporter factory. Should only be used in Agent OTLP ingestion pipelines.
func NewFactoryWithType ¶ added in v0.65.0
func NewFactoryWithType(logsAgentChannel chan *message.Message, typ component.Type, gatewayUsage otel.GatewayUsage, reporter *inframetadata.Reporter) exp.Factory
NewFactoryWithType creates a new logsagentexporter factory with the given type.
Types ¶
type Config ¶
type Config struct {
OtelSource string
LogSourceName string
QueueSettings configoptional.Optional[exporterhelper.QueueBatchConfig] `mapstructure:"sending_queue"`
// HostMetadata defines the host metadata specific configuration
HostMetadata datadogconfig.HostMetadataConfig `mapstructure:"host_metadata"`
OrchestratorConfig OrchestratorConfig
}
Config defines configuration for the logs agent exporter.
type Exporter ¶ added in v0.56.0
type Exporter struct {
// contains filtered or unexported fields
}
Exporter defines fields for the logs agent exporter
func NewExporter ¶ added in v0.56.0
func NewExporter( set component.TelemetrySettings, cfg *Config, logSource *sources.LogSource, logsAgentChannel chan *message.Message, attributesTranslator *attributes.Translator, ) (*Exporter, error)
NewExporter initializes a new logs agent exporter with the given parameters
func NewExporterWithGatewayUsage ¶ added in v0.65.0
func NewExporterWithGatewayUsage( set component.TelemetrySettings, cfg *Config, logSource *sources.LogSource, logsAgentChannel chan *message.Message, attributesTranslator *attributes.Translator, gatewaysUsage otel.GatewayUsage, ) (*Exporter, error)
NewExporterWithGatewayUsage initializes a new logs agent exporter with the given parameters
type OrchestratorConfig ¶ added in v0.74.0
type OrchestratorConfig struct {
Enabled bool
Hostname hostnameinterface.Component
Key string
Site string
Endpoint string
}
OrchestratorConfig contains configuration for sending orchestrator data to Datadog.
Click to show internal directories.
Click to hide internal directories.