googlecloud

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2021 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoogleCloudOutput

type GoogleCloudOutput struct {
	helper.OutputOperator
	// contains filtered or unexported fields
}

GoogleCloudOutput is an operator that sends logs to google cloud logging.

func (*GoogleCloudOutput) IsTooLargeError added in v1.0.0

func (g *GoogleCloudOutput) IsTooLargeError(err error) bool

func (*GoogleCloudOutput) Process added in v1.0.0

func (g *GoogleCloudOutput) Process(ctx context.Context, e *entry.Entry) error

Process processes an entry

func (*GoogleCloudOutput) Send added in v1.0.0

func (g *GoogleCloudOutput) Send(ctx context.Context, entries []*entry.Entry) error

func (*GoogleCloudOutput) Start

func (g *GoogleCloudOutput) Start() error

Start will start the google cloud logger.

func (*GoogleCloudOutput) Stop

func (g *GoogleCloudOutput) Stop() error

Stop will flush the google cloud logger and close the underlying connection

type GoogleCloudOutputConfig

type GoogleCloudOutputConfig struct {
	helper.OutputConfig `yaml:",inline"`
	BufferConfig        buffer.Config   `json:"buffer,omitempty" yaml:"buffer,omitempty"`
	FlusherConfig       flusher.Config  `json:"flusher,omitempty" yaml:"flusher,omitempty"`
	Credentials         string          `json:"credentials,omitempty"      yaml:"credentials,omitempty"`
	CredentialsFile     string          `json:"credentials_file,omitempty" yaml:"credentials_file,omitempty"`
	ProjectID           string          `json:"project_id"                 yaml:"project_id"`
	LogNameField        *entry.Field    `json:"log_name_field,omitempty"   yaml:"log_name_field,omitempty"`
	TraceField          *entry.Field    `json:"trace_field,omitempty"      yaml:"trace_field,omitempty"`
	SpanIDField         *entry.Field    `json:"span_id_field,omitempty"    yaml:"span_id_field,omitempty"`
	Timeout             helper.Duration `json:"timeout,omitempty"          yaml:"timeout,omitempty"`
	UseCompression      bool            `json:"use_compression,omitempty"  yaml:"use_compression,omitempty"`
}

GoogleCloudOutputConfig is the configuration of a google cloud output operator.

func NewGoogleCloudOutputConfig

func NewGoogleCloudOutputConfig(operatorID string) *GoogleCloudOutputConfig

NewGoogleCloudOutputConfig creates a new google cloud output config with default

func (GoogleCloudOutputConfig) Build

Build will build a google cloud output operator.

Jump to

Keyboard shortcuts

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