Documentation ¶
Index ¶
- Constants
- func Init(ctx context.Context, opts TelemetryOptions) error
- func IsEnabled() bool
- func IsLogsEnabled() bool
- func NewTraceExporter(url string) (*otlptrace.Exporter, error)
- func Shutdown(ctx context.Context) error
- type EventType
- type NoTelemetryWerfIO
- type TelemetryOptions
- type TelemetryWerfIO
- func (t *TelemetryWerfIO) CommandStarted(ctx context.Context)
- func (t *TelemetryWerfIO) SetCommand(ctx context.Context, command string)
- func (t *TelemetryWerfIO) SetProjectID(ctx context.Context, projectID string)
- func (t *TelemetryWerfIO) Shutdown(ctx context.Context) error
- func (t *TelemetryWerfIO) Start(ctx context.Context) error
- type TelemetryWerfIOInterface
- type TelemetryWerfIOOptions
Constants ¶
View Source
const (
TracesURL = "https://telemetry.werf.io/v1/traces"
)
Variables ¶
This section is empty.
Functions ¶
func IsLogsEnabled ¶ added in v1.2.122
func IsLogsEnabled() bool
func NewTraceExporter ¶ added in v1.2.119
Types ¶
type EventType ¶ added in v1.2.122
type EventType string
const (
CommandStartedEvent EventType = "CommandStarted"
)
type NoTelemetryWerfIO ¶ added in v1.2.120
type NoTelemetryWerfIO struct{}
func (*NoTelemetryWerfIO) CommandStarted ¶ added in v1.2.120
func (t *NoTelemetryWerfIO) CommandStarted(context.Context)
func (*NoTelemetryWerfIO) SetCommand ¶ added in v1.2.120
func (t *NoTelemetryWerfIO) SetCommand(context.Context, string)
func (*NoTelemetryWerfIO) SetProjectID ¶ added in v1.2.120
func (t *NoTelemetryWerfIO) SetProjectID(context.Context, string)
type TelemetryOptions ¶ added in v1.2.121
type TelemetryOptions struct {
ErrorHandlerFunc func(err error)
}
type TelemetryWerfIO ¶ added in v1.2.120
type TelemetryWerfIO struct {
// contains filtered or unexported fields
}
func NewTelemetryWerfIO ¶ added in v1.2.120
func NewTelemetryWerfIO(url string, opts TelemetryWerfIOOptions) (*TelemetryWerfIO, error)
func (*TelemetryWerfIO) CommandStarted ¶ added in v1.2.120
func (t *TelemetryWerfIO) CommandStarted(ctx context.Context)
func (*TelemetryWerfIO) SetCommand ¶ added in v1.2.120
func (t *TelemetryWerfIO) SetCommand(ctx context.Context, command string)
func (*TelemetryWerfIO) SetProjectID ¶ added in v1.2.120
func (t *TelemetryWerfIO) SetProjectID(ctx context.Context, projectID string)
type TelemetryWerfIOInterface ¶ added in v1.2.120
type TelemetryWerfIOInterface interface { SetProjectID(ctx context.Context, projectID string) SetCommand(ctx context.Context, command string) CommandStarted(ctx context.Context) }
func GetTelemetryWerfIO ¶ added in v1.2.120
func GetTelemetryWerfIO() TelemetryWerfIOInterface
type TelemetryWerfIOOptions ¶ added in v1.2.122
type TelemetryWerfIOOptions struct {
HandleErrorFunc func(err error)
}
Click to show internal directories.
Click to hide internal directories.