tracelog

package
v0.0.0-...-f367847 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type LoggingInterceptor

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

func NewConnectLoggingInterceptor

func NewConnectLoggingInterceptor(logger *zap.Logger) LoggingInterceptor

func (LoggingInterceptor) WrapStreamingClient

Noop

func (LoggingInterceptor) WrapStreamingHandler

func (LoggingInterceptor) WrapUnary

WrapUnary implements [Interceptor] by applying the interceptor function.

type RandomTraceGetter

type RandomTraceGetter struct{}

RandomTrace is a fallback to insert a random trace ID if none was acquired from previous header lookups

func (RandomTraceGetter) Extract

Extract gives you a context with random TraceID and SpanID inserted if it didn't exist yet

func (RandomTraceGetter) Fields

func (p RandomTraceGetter) Fields() []string

Fields returns an empty list in RandomTraceGetter

func (RandomTraceGetter) Inject

Inject does not inject anything in RandomTraceGetter

Jump to

Keyboard shortcuts

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