Documentation ¶
Index ¶
- func NewFactory() exporter.Factory
- type Config
- type KeyValue
- type KeyValues
- func (kv *KeyValues) Append(key, value string)
- func (kv *KeyValues) Clone() KeyValues
- func (kv *KeyValues) Len() int
- func (kv *KeyValues) Less(i, j int) bool
- func (kv *KeyValues) Replace(key, value string)
- func (kv *KeyValues) Sort()
- func (kv *KeyValues) String() string
- func (kv *KeyValues) Swap(i, j int)
- type LogServiceClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶ added in v0.9.0
NewFactory creates a factory for AlibabaCloud LogService exporter.
Types ¶
type Config ¶
type Config struct { // LogService's Endpoint, https://www.alibabacloud.com/help/doc-detail/29008.htm // for AlibabaCloud Kubernetes(or ECS), set {region-id}-intranet.log.aliyuncs.com, eg cn-hangzhou-intranet.log.aliyuncs.com; // others set {region-id}.log.aliyuncs.com, eg cn-hangzhou.log.aliyuncs.com Endpoint string `mapstructure:"endpoint"` // LogService's Project Name Project string `mapstructure:"project"` // LogService's Logstore Name Logstore string `mapstructure:"logstore"` // AlibabaCloud access key id AccessKeyID string `mapstructure:"access_key_id"` // AlibabaCloud access key secret AccessKeySecret configopaque.String `mapstructure:"access_key_secret"` // Set AlibabaCLoud ECS ram role if you are using ACK ECSRamRole string `mapstructure:"ecs_ram_role"` // Set Token File Path if you are using ACK TokenFilePath string `mapstructure:"token_file_path"` }
type LogServiceClient ¶
type LogServiceClient interface { // SendLogs send message to LogService SendLogs(logs []*sls.Log) error }
LogServiceClient log Service's client wrapper
func NewLogServiceClient ¶
func NewLogServiceClient(config *Config, logger *zap.Logger) (LogServiceClient, error)
NewLogServiceClient Create Log Service client
Source Files ¶
Click to show internal directories.
Click to hide internal directories.