tracing_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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TraceSinkServer

type TraceSinkServer struct {
	pb.UnimplementedTraceSinkServer
	// contains filtered or unexported fields
}

TraceSinkServer defines the interface and associated state for a trace sink instance

func Register

func Register(svc *grpc.Server, limit int) (*TraceSinkServer, error)

Register instantiates a sink service instance, and registers it with the grpc service.

func (*TraceSinkServer) Append

func (s *TraceSinkServer) Append(ctx context.Context, request *pb.AppendRequest) (*empty.Empty, error)

Append adds a trace entry to the list of known entries.

func (*TraceSinkServer) GetAfter

func (s *TraceSinkServer) GetAfter(ctx context.Context, request *pb.GetAfterRequest) (*pb.GetAfterResponse, error)

GetAfter retrieves trace entries starting after the supplied ID. The caller also specifies the maximum number of entries to return in one call, and whether to wait if there are no entries currently outstanding.

func (*TraceSinkServer) GetPolicy

GetPolicy supplies information on the range of trace entries held by the sink service, and the limits on how many it will retain.

func (*TraceSinkServer) Reset

Reset is a test support function that forcibly resets the instance's state to its initial values.

Jump to

Keyboard shortcuts

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