otel

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2023 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OTELForwarder

type OTELForwarder struct {
	collogspb.UnsafeLogsServiceServer

	Client *util.AsyncClient[collogspb.LogsServiceClient]
	// contains filtered or unexported fields
}

func NewOTELForwarder

func NewOTELForwarder(opts ...OTELForwarderOption) *OTELForwarder

func (*OTELForwarder) BackgroundInitClient

func (f *OTELForwarder) BackgroundInitClient()

func (*OTELForwarder) ConfigureRoutes

func (f *OTELForwarder) ConfigureRoutes(router *gin.Engine)

func (*OTELForwarder) Export

func (*OTELForwarder) SetClient

func (f *OTELForwarder) SetClient(cc grpc.ClientConnInterface)

type OTELForwarderOption

type OTELForwarderOption func(*otelForwarderOptions)

func WithAddress

func WithAddress(address string) OTELForwarderOption

func WithDialOptions

func WithDialOptions(opts ...grpc.DialOption) OTELForwarderOption

func WithLogger

func WithLogger(lg *zap.SugaredLogger) OTELForwarderOption

Jump to

Keyboard shortcuts

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