trace_sink

package
v0.0.0-...-3e52749 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Append

func Append(ctx context.Context, entry *log.Entry) error

Append adds a log entry to the trace sink

func GetPolicy

func GetPolicy(ctx context.Context) (*pb.GetPolicyResponse, error)

GetPolicy obtains the current trace sink policy and returns it

func GetTraces

func GetTraces(
	ctx context.Context,
	start int64,
	maxCount int64) <-chan traceData

GetTraces retrieves up to the specified limit of trace entries, from the specified starting point. It will always wait for at least one non-internal entry before returning.

func InitSinkClient

func InitSinkClient(name string, opts ...grpc.DialOption) error

InitSinkClient stores the information needed to be able to connect to the Stepper service.

func Reset

func Reset(ctx context.Context) error

Reset forcibly resets the trace sink to its initial state. This is intended to support unit tests

Types

This section is empty.

Jump to

Keyboard shortcuts

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