spanlogger

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2025 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// TenantIDsTagName is the tenant IDs tag name.
	TenantIDsTagName = spanlogger.TenantIDsTagName
)

Variables

This section is empty.

Functions

This section is empty.

Types

type LazyJoin added in v1.15.0

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

func (*LazyJoin) String added in v1.15.0

func (l *LazyJoin) String() string

type LogSpanParametersWrapper added in v1.15.0

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

func NewLogSpanParametersWrapper added in v1.15.0

func NewLogSpanParametersWrapper(client querierv1connect.QuerierServiceClient, logger log.Logger) *LogSpanParametersWrapper

func (LogSpanParametersWrapper) AnalyzeQuery added in v1.15.0

func (LogSpanParametersWrapper) Diff added in v1.15.0

func (LogSpanParametersWrapper) GetProfileStats added in v1.15.0

func (LogSpanParametersWrapper) LabelNames added in v1.15.0

func (LogSpanParametersWrapper) LabelValues added in v1.15.0

func (LogSpanParametersWrapper) ProfileTypes added in v1.15.0

func (LogSpanParametersWrapper) SelectMergeProfile added in v1.15.0

func (LogSpanParametersWrapper) SelectSeries added in v1.15.0

func (LogSpanParametersWrapper) Series added in v1.15.0

type SpanLogger

type SpanLogger = spanlogger.SpanLogger

SpanLogger unifies tracing and logging, to reduce repetition.

func FromContext

func FromContext(ctx context.Context, fallback log.Logger) *SpanLogger

FromContext returns a SpanLogger using the current parent span. If there is no parent span, the SpanLogger will only log to the logger within the context. If the context doesn't have a logger, the fallback logger is used.

func NewWithLogger

func NewWithLogger(ctx context.Context, logger log.Logger, method string, kvps ...interface{}) (*SpanLogger, context.Context)

NewWithLogger is like New but allows to pass a logger.

Jump to

Keyboard shortcuts

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