fabric: github.com/hyperledger/fabric/common/flogging/metrics Index | Files

package metrics

import "github.com/hyperledger/fabric/common/flogging/metrics"

Index

Package Files

observer.go

Variables

var (
    CheckedCountOpts = metrics.CounterOpts{
        Namespace:    "logging",
        Name:         "entries_checked",
        Help:         "Number of log entries checked against the active logging level",
        LabelNames:   []string{"level"},
        StatsdFormat: "%{#fqname}.%{level}",
    }

    WriteCountOpts = metrics.CounterOpts{
        Namespace:    "logging",
        Name:         "entries_written",
        Help:         "Number of log entries that are written",
        LabelNames:   []string{"level"},
        StatsdFormat: "%{#fqname}.%{level}",
    }
)

type Observer Uses

type Observer struct {
    CheckedCounter metrics.Counter
    WrittenCounter metrics.Counter
}

func NewObserver Uses

func NewObserver(provider metrics.Provider) *Observer

func (*Observer) Check Uses

func (m *Observer) Check(e zapcore.Entry, ce *zapcore.CheckedEntry)

func (*Observer) WriteEntry Uses

func (m *Observer) WriteEntry(e zapcore.Entry, fields []zapcore.Field)

Package metrics imports 2 packages (graph) and is imported by 2 packages. Updated 2019-01-12. Refresh now. Tools for package owners.