ignoremismatch

package
v0.0.0-...-223af15 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package ignoremismatch contains to logic to mark mismatches in log records as ignored based on provided rules.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MismatchIgnorer

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

MismatchIgnorer checkes mismatches in the log records and mark a mismatch as ignored if any mismatch ignoring rule matches it.

func New

func New(configPath string) (*MismatchIgnorer, error)

New creates a mismatch ignorer from a textproto file containing the rule config.

func (*MismatchIgnorer) ProcessLogRecord

func (mi *MismatchIgnorer) ProcessLogRecord(r *lpb.LogRecord)

ProcessLogRecord marks a mismatch in the log record as ignored if any mismatch ignoring rule matches it.

Jump to

Keyboard shortcuts

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