Documentation
¶
Index ¶
- func Close(ctx context.Context) error
- func Debug(msg string)
- func DebugCtx(ctx context.Context, msg string)
- func Error(msg string)
- func ErrorCtx(ctx context.Context, msg string)
- func Fatal(msg string)
- func FatalCtx(ctx context.Context, msg string)
- func Info(msg string)
- func InfoCtx(ctx context.Context, msg string)
- func Init(cfg Config)
- func SetDefault(l *Logger)
- func SetLevel(level Level)
- func Trace(msg string)
- func TraceCtx(ctx context.Context, msg string)
- func Warn(msg string)
- func WarnCtx(ctx context.Context, msg string)
- type Config
- type Format
- type Level
- type Logger
- func (l *Logger) Close(ctx context.Context) error
- func (l *Logger) Debug(msg string)
- func (l *Logger) DebugCtx(ctx context.Context, msg string)
- func (l *Logger) Error(msg string)
- func (l *Logger) ErrorCtx(ctx context.Context, msg string)
- func (l *Logger) Fatal(msg string)
- func (l *Logger) FatalCtx(ctx context.Context, msg string)
- func (l *Logger) GetLevel() Level
- func (l *Logger) Info(msg string)
- func (l *Logger) InfoCtx(ctx context.Context, msg string)
- func (l *Logger) SetLevel(level Level)
- func (l *Logger) StartSpan(ctx context.Context, name string, fields ...SpanField) (context.Context, *Span)
- func (l *Logger) Trace(msg string)
- func (l *Logger) TraceCtx(ctx context.Context, msg string)
- func (l *Logger) Warn(msg string)
- func (l *Logger) WarnCtx(ctx context.Context, msg string)
- func (l *Logger) WithField(key string, val any) *Logger
- func (l *Logger) WithFields(fields map[string]any) *Logger
- type OTelConfig
- type OTelLogsProcessor
- type OTelTracesProcessor
- type Span
- type SpanField
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetDefault ¶
func SetDefault(l *Logger)
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func WithFields ¶
type OTelConfig ¶
type OTelConfig struct {
Enabled bool
Endpoint string
Headers map[string]string
ServiceName string
HostName string
ExportTraces bool
ExportLogs bool
TracesProcessor OTelTracesProcessor
TracesBatchTimeout time.Duration
TracesBatchExportTimeout time.Duration
TracesMaxQueueSize int
TracesMaxExportBatchSize int
LogsProcessor OTelLogsProcessor
LogsBatchTimeout time.Duration
LogsBatchExportTimeout time.Duration
FatalFlushTimeout time.Duration
}
type OTelLogsProcessor ¶ added in v0.4.0
type OTelLogsProcessor int8
const ( OTelLogsProcessorUnset OTelLogsProcessor = iota OTelLogsProcessorBatch OTelLogsProcessorSimple )
func (OTelLogsProcessor) String ¶ added in v0.4.0
func (p OTelLogsProcessor) String() string
type OTelTracesProcessor ¶ added in v0.4.0
type OTelTracesProcessor int8
const ( OTelTracesProcessorUnset OTelTracesProcessor = iota OTelTracesProcessorBatch OTelTracesProcessorSimple )
func (OTelTracesProcessor) String ¶ added in v0.4.0
func (p OTelTracesProcessor) String() string
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
signoz_local
command
|
|
|
signoz_logs_batch
command
|
|
|
signoz_logs_fatal_flush
command
|
|
|
signoz_logs_simple
command
|
|
|
signoz_simple_full
command
|
|
|
signoz_traces_fatal_flush
command
|
|
|
signoz_traces_simple
command
|
|
|
spans_json
command
|
|
|
spans_text
command
|
Click to show internal directories.
Click to hide internal directories.