logzioexporter

package module
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2020 License: Apache-2.0 Imports: 16 Imported by: 7

README

Logzio Exporter

This exporter supports sending trace data to Logz.io

The following configuration options are supported:

  • account_token (Required): Your logz.io account token for your tracing account.
  • region (Optional): Your logz.io account region code. Defaults to us. Required only if your logz.io region is different than US.
  • custom_listener_address (Optional): Custom traces endpoint, for dev. This will override the region parameter.

Example:

exporters:
  logzio:
    account_token: "youLOGZIOaccountTOKEN"
    region: "eu"

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFactory

func NewFactory() component.ExporterFactory

NewFactory creates a factory for Logz.io exporter.

Types

type Config

type Config struct {
	configmodels.ExporterSettings `mapstructure:",squash"`
	Token                         string `mapstructure:"account_token"`   // Your Logz.io Account Token, can be found at https://app.logz.io/#/dashboard/settings/general
	Region                        string `mapstructure:"region"`          // Your Logz.io 2-letter region code, can be found at https://docs.logz.io/user-guide/accounts/account-region.html#available-regions
	CustomEndpoint                string `mapstructure:"custom_endpoint"` // Custom endpoint to ship traces to. Use only for dev and tests.
}

Config contains Logz.io specific configuration such as Account Token, Region, etc.

type Hclog2ZapLogger added in v0.14.0

type Hclog2ZapLogger struct {
	Zap *zap.Logger
	// contains filtered or unexported fields
}

Hclog2ZapLogger implements Hashicorp's hclog.Logger interface using Uber's zap.Logger. It's a workaround for plugin system. go-plugin doesn't support other logger than hclog. This logger implements only methods used by the go-plugin.

func (Hclog2ZapLogger) Debug added in v0.14.0

func (l Hclog2ZapLogger) Debug(msg string, args ...interface{})

Debug implementation.

func (Hclog2ZapLogger) Error added in v0.14.0

func (l Hclog2ZapLogger) Error(msg string, args ...interface{})

Error implementation.

func (Hclog2ZapLogger) ImpliedArgs added in v0.14.0

func (l Hclog2ZapLogger) ImpliedArgs() []interface{}

func (Hclog2ZapLogger) Info added in v0.14.0

func (l Hclog2ZapLogger) Info(msg string, args ...interface{})

Info implementation.

func (Hclog2ZapLogger) IsDebug added in v0.14.0

func (l Hclog2ZapLogger) IsDebug() bool

IsDebug implementation.

func (Hclog2ZapLogger) IsError added in v0.14.0

func (l Hclog2ZapLogger) IsError() bool

IsError implementation.

func (Hclog2ZapLogger) IsInfo added in v0.14.0

func (l Hclog2ZapLogger) IsInfo() bool

IsInfo implementation.

func (Hclog2ZapLogger) IsTrace added in v0.14.0

func (l Hclog2ZapLogger) IsTrace() bool

IsTrace implementation.

func (Hclog2ZapLogger) IsWarn added in v0.14.0

func (l Hclog2ZapLogger) IsWarn() bool

IsWarn implementation.

func (Hclog2ZapLogger) Log added in v0.14.0

func (l Hclog2ZapLogger) Log(level hclog.Level, msg string, args ...interface{})

func (Hclog2ZapLogger) Name added in v0.14.0

func (l Hclog2ZapLogger) Name() string

func (Hclog2ZapLogger) Named added in v0.14.0

func (l Hclog2ZapLogger) Named(name string) hclog.Logger

Named implementation.

func (Hclog2ZapLogger) ResetNamed added in v0.14.0

func (l Hclog2ZapLogger) ResetNamed(name string) hclog.Logger

ResetNamed implementation.

func (Hclog2ZapLogger) SetLevel added in v0.14.0

func (l Hclog2ZapLogger) SetLevel(level hclog.Level)

SetLevel implementation.

func (Hclog2ZapLogger) StandardLogger added in v0.14.0

func (l Hclog2ZapLogger) StandardLogger(opts *hclog.StandardLoggerOptions) *log.Logger

StandardLogger implementation.

func (Hclog2ZapLogger) StandardWriter added in v0.14.0

func (l Hclog2ZapLogger) StandardWriter(opts *hclog.StandardLoggerOptions) io.Writer

func (Hclog2ZapLogger) Trace added in v0.14.0

func (l Hclog2ZapLogger) Trace(msg string, args ...interface{})

Trace implementation.

func (Hclog2ZapLogger) Warn added in v0.14.0

func (l Hclog2ZapLogger) Warn(msg string, args ...interface{})

Warn implementation.

func (Hclog2ZapLogger) With added in v0.14.0

func (l Hclog2ZapLogger) With(args ...interface{}) hclog.Logger

With implementation.

Jump to

Keyboard shortcuts

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