otlp

package
v0.15.7 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: MIT Imports: 34 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGrpcServer

func NewGrpcServer(addr string, ingester Ingester, tracer trace.Tracer) *grpcServer

func NewHttpServer

func NewHttpServer(addr string, ingester Ingester) *httpServer

func NewIngester

func NewIngester(
	tracePersister tracePersister,
	runRepository runGetter,
	eventEmitter executor.EventEmitter,
	dsRepo *datastore.Repository,
	subManager subscription.Manager,
	tracer trace.Tracer,
) *ingester

Types

type Ingester

type Ingester interface {
	Ingest(ctx context.Context, request *pb.ExportTraceServiceRequest, requestType RequestType) (*pb.ExportTraceServiceResponse, error)
}

type RequestType

type RequestType string
var (
	RequestTypeHTTP RequestType = "HTTP"
	RequestTypeGRPC RequestType = "gRPC"
)

Jump to

Keyboard shortcuts

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