otlp

package
v0.0.0-...-ed06964 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: MIT Imports: 29 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, 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