libobserve

package
v0.2.11 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func InitOTEL

func InitOTEL(c *conf.OTLP) error

func Server

func Server(observer *BuiltInObserver) middleware.Middleware

Types

type BuiltInObserver

type BuiltInObserver struct {
	// contains filtered or unexported fields
}

func NewBuiltInObserver

func NewBuiltInObserver() (*BuiltInObserver, error)

func (*BuiltInObserver) GetRequest

func (o *BuiltInObserver) GetRequest() *ObserverCounter

func (*BuiltInObserver) NewMQ

func (o *BuiltInObserver) NewMQ(key string) *ObserverCounter

func (*BuiltInObserver) Start

func (o *BuiltInObserver) Start(ctx context.Context) error

func (*BuiltInObserver) Stop

func (o *BuiltInObserver) Stop(_ context.Context) error

type ObserverCounter

type ObserverCounter struct {
	// contains filtered or unexported fields
}

func NewObserverCounter

func NewObserverCounter() *ObserverCounter

func (*ObserverCounter) Failure

func (o *ObserverCounter) Failure()

func (*ObserverCounter) Success

func (o *ObserverCounter) Success()

Jump to

Keyboard shortcuts

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