Documentation ¶
Index ¶
- type OTELForwarder
- func (f *OTELForwarder) BackgroundInitClient()
- func (f *OTELForwarder) ConfigureRoutes(router *gin.Engine)
- func (f *OTELForwarder) Export(ctx context.Context, request *collogspb.ExportLogsServiceRequest) (*collogspb.ExportLogsServiceResponse, error)
- func (f *OTELForwarder) SetClient(cc grpc.ClientConnInterface)
- type OTELForwarderOption
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 (f *OTELForwarder) Export( ctx context.Context, request *collogspb.ExportLogsServiceRequest, ) (*collogspb.ExportLogsServiceResponse, error)
func (*OTELForwarder) SetClient ¶
func (f *OTELForwarder) SetClient(cc grpc.ClientConnInterface)
type OTELForwarderOption ¶
type OTELForwarderOption func(*otelForwarderOptions)
func WithAddress ¶
func WithAddress(address string) OTELForwarderOption
func WithClientConn ¶
func WithClientConn(cc grpc.ClientConnInterface) OTELForwarderOption
func WithDialOptions ¶
func WithDialOptions(opts ...grpc.DialOption) OTELForwarderOption
func WithLogger ¶
func WithLogger(lg *zap.SugaredLogger) OTELForwarderOption
Click to show internal directories.
Click to hide internal directories.