Documentation ¶
Index ¶
- type DefaultLogger
- type LightstepConfig
- type LightstepOpentelemetry
- type Logger
- type Option
- func WithAccessToken(accessToken string) Option
- func WithDebug(debug bool) Option
- func WithInsecure(insecure bool) Option
- func WithLogger(logger Logger) Option
- func WithMetricsURL(url string) Option
- func WithSatelliteURL(url string) Option
- func WithServiceName(name string) Option
- func WithServiceVersion(version string) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultLogger ¶
type DefaultLogger struct { }
func (*DefaultLogger) Debugf ¶
func (l *DefaultLogger) Debugf(format string, v ...interface{})
func (*DefaultLogger) Fatalf ¶
func (l *DefaultLogger) Fatalf(format string, v ...interface{})
type LightstepConfig ¶
type LightstepConfig struct { ServiceName string `env:"LS_SERVICE_NAME"` ServiceVersion string `env:"LS_SERVICE_VERSION,default=unknown"` SatelliteURL string `env:"LS_SATELLITE_URL,default=ingest.lightstep.com:443"` MetricsURL string `env:"LS_METRICS_URL,default=ingest.lightstep.com:443/metrics"` AccessToken string `env:"LS_ACCESS_TOKEN"` Debug bool `env:"LS_DEBUG,default=false"` Insecure bool `env:"LS_INSECURE,default=false"` // contains filtered or unexported fields }
type LightstepOpentelemetry ¶
type LightstepOpentelemetry struct {
// contains filtered or unexported fields
}
func ConfigureOpentelemetry ¶
func ConfigureOpentelemetry(opts ...Option) LightstepOpentelemetry
func (*LightstepOpentelemetry) Shutdown ¶
func (ls *LightstepOpentelemetry) Shutdown()
type Option ¶
type Option func(*LightstepConfig)
func WithAccessToken ¶
func WithInsecure ¶
func WithLogger ¶
func WithMetricsURL ¶
func WithSatelliteURL ¶
func WithServiceName ¶
func WithServiceVersion ¶
Click to show internal directories.
Click to hide internal directories.