Documentation
¶
Index ¶
Constants ¶
View Source
const ( FieldTypeUnknown = 0 FieldTypeNumber = 1 FieldTypeString = 2 FieldTypeBool = 3 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Factory ¶
type Factory interface {
ActionRecorder(ctx context.Context, name string, fields ...Field) (Recorder, context.Context)
}
func ChainFactory ¶
func EasyRecorders ¶
type FactoryWrapper ¶
func (FactoryWrapper) ActionRecorder ¶
type LoggerFactory ¶
type LoggerFactory struct {
// contains filtered or unexported fields
}
func NewLoggerRecorderFactory ¶
func NewLoggerRecorderFactory(logger *zap.Logger, recordNoErr bool, messageDesc string) *LoggerFactory
func (*LoggerFactory) ActionRecorder ¶
type LoggerRecorder ¶
type LoggerRecorder struct {
// contains filtered or unexported fields
}
func (LoggerRecorder) Commit ¶
func (recorder LoggerRecorder) Commit(err error, fields ...Field)
type MaxDurationWrapper ¶
func (MaxDurationWrapper) WrapRecord ¶
type PromFactory ¶
type PromFactory struct {
// contains filtered or unexported fields
}
func NewPromRecorderFactory ¶
func NewPromRecorderFactory(name string, fields ...string) *PromFactory
func (*PromFactory) ActionRecorder ¶
type PromRecorder ¶
type PromRecorder struct {
// contains filtered or unexported fields
}
func (PromRecorder) Commit ¶
func (recorder PromRecorder) Commit(err error, fields ...Field)
type TracerFactory ¶
type TracerFactory struct {
// contains filtered or unexported fields
}
func NewTracerFactory ¶
func NewTracerFactory(tracer opentracing.Tracer) *TracerFactory
func (*TracerFactory) ActionRecorder ¶
type TracerRecorder ¶
type TracerRecorder struct {
// contains filtered or unexported fields
}
func (TracerRecorder) Commit ¶
func (recorder TracerRecorder) Commit(err error, fields ...Field)
Click to show internal directories.
Click to hide internal directories.