Documentation ¶
Index ¶
- func NewFactory() component.ExporterFactory
- type Config
- type Hclog2ZapLogger
- func (l Hclog2ZapLogger) Debug(msg string, args ...interface{})
- func (l Hclog2ZapLogger) Error(msg string, args ...interface{})
- func (l Hclog2ZapLogger) ImpliedArgs() []interface{}
- func (l Hclog2ZapLogger) Info(msg string, args ...interface{})
- func (l Hclog2ZapLogger) IsDebug() bool
- func (l Hclog2ZapLogger) IsError() bool
- func (l Hclog2ZapLogger) IsInfo() bool
- func (l Hclog2ZapLogger) IsTrace() bool
- func (l Hclog2ZapLogger) IsWarn() bool
- func (l Hclog2ZapLogger) Log(level hclog.Level, msg string, args ...interface{})
- func (l Hclog2ZapLogger) Name() string
- func (l Hclog2ZapLogger) Named(name string) hclog.Logger
- func (l Hclog2ZapLogger) ResetNamed(name string) hclog.Logger
- func (l Hclog2ZapLogger) SetLevel(level hclog.Level)
- func (l Hclog2ZapLogger) StandardLogger(opts *hclog.StandardLoggerOptions) *log.Logger
- func (l Hclog2ZapLogger) StandardWriter(opts *hclog.StandardLoggerOptions) io.Writer
- func (l Hclog2ZapLogger) Trace(msg string, args ...interface{})
- func (l Hclog2ZapLogger) Warn(msg string, args ...interface{})
- func (l Hclog2ZapLogger) With(args ...interface{}) hclog.Logger
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 { config.ExporterSettings `mapstructure:",squash"` TracesToken string `mapstructure:"account_token"` // Your Logz.io Account Token, can be found at https://app.logz.io/#/dashboard/settings/general MetricsToken string `mapstructure:"metrics_token"` // Your Logz.io Metrics Token, can be found at https://docs.logz.io/user-guide/accounts/finding-your-metrics-account-token/ 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 TracesToken, Region, etc.
type Hclog2ZapLogger ¶ added in v0.14.0
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.