chunkinfologger

package
v0.0.0-...-f8e07d0 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2024 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const ChunkInfoLoggingHeader = "X-Mimir-Chunk-Info-Logger"

Variables

This section is empty.

Functions

func ChunkInfoLoggingFromContext

func ChunkInfoLoggingFromContext(ctx context.Context) []string

func ContextWithChunkInfoLogging

func ContextWithChunkInfoLogging(ctx context.Context, labels []string) context.Context

func IsChunkInfoLoggingEnabled

func IsChunkInfoLoggingEnabled(ctx context.Context) bool

func Middleware

func Middleware() middleware.Interface

Types

type ChunkInfoLogger

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

func NewChunkInfoLogger

func NewChunkInfoLogger(msg, traceID, spanID string, logger log.Logger, labels []string) *ChunkInfoLogger

func (*ChunkInfoLogger) EndSeries

func (c *ChunkInfoLogger) EndSeries(lastOne bool)

Close a series in the chunk info and dump into log if it exceeds the max size.

func (*ChunkInfoLogger) FormatIngesterChunkInfo

func (c *ChunkInfoLogger) FormatIngesterChunkInfo(sourceID string, chunks []client.Chunk)

Format the chunk info from ingesters

func (*ChunkInfoLogger) FormatStoreGatewayChunkInfo

func (c *ChunkInfoLogger) FormatStoreGatewayChunkInfo(sourceID string, chunks []storepb.AggrChunk)

func (*ChunkInfoLogger) LogSelect

func (c *ChunkInfoLogger) LogSelect(msg string, minT, maxT int64)

func (*ChunkInfoLogger) SetMsg

func (c *ChunkInfoLogger) SetMsg(msg string)

func (*ChunkInfoLogger) StartSeries

func (c *ChunkInfoLogger) StartSeries(ls labels.Labels)

Jump to

Keyboard shortcuts

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