sender

package module
v0.0.0-...-7237f66 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 8, 2024 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTracer

func NewTracer(svcName string) (trace.Tracer, error)

Types

type ClickHouseWriter

type ClickHouseWriter struct {
	// contains filtered or unexported fields
}

func NewClickHouseWriter

func NewClickHouseWriter(url string) *ClickHouseWriter

func (*ClickHouseWriter) Write

func (w *ClickHouseWriter) Write(p []byte) (n int, err error)

type CustomExporter

type CustomExporter struct{}

func NewCustomExporter

func NewCustomExporter() *CustomExporter

func (*CustomExporter) ExportSpans

func (e *CustomExporter) ExportSpans(ctx context.Context, spans []sdktrace.ReadOnlySpan) error

func (*CustomExporter) Shutdown

func (e *CustomExporter) Shutdown(ctx context.Context) error

type CustomHook

type CustomHook struct {
}

func (CustomHook) Run

func (h CustomHook) Run(e *zerolog.Event, level zerolog.Level, msg string)

type CustomLogger

type CustomLogger struct {
	zerolog.Logger
}

func (*CustomLogger) DebugWithContext

func (l *CustomLogger) DebugWithContext(ctx context.Context) *zerolog.Event

func (*CustomLogger) InfoWithContext

func (l *CustomLogger) InfoWithContext(ctx context.Context) *zerolog.Event

func (*CustomLogger) WarningWithContext

func (l *CustomLogger) WarningWithContext(ctx context.Context) *zerolog.Event

type LogMessage

type LogMessage struct {
	Level    string    `json:"level"`
	Time     time.Time `json:"time"`
	Message  string    `json:"message"`
	TraceId  string    `json:"trace_id"`
	File     string    `json:"file"`
	Function string    `json:"function"`
	Line     int       `json:"line"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL