openobserve

package
v0.0.0-...-bc159d5 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// ScopeName is the instrumentation scope name.
	ScopeName = "github.com/scalarorg/relayers"
)

Variables

Functions

func Init

func Init(conf OpenObserveConfig)

func Middleware

func Middleware() echo.MiddlewareFunc

Middleware returns echo middleware which will trace incoming requests.

func SetupTraceHTTP

func SetupTraceHTTP() *sdktrace.TracerProvider

Types

type LogWriter

type LogWriter struct {
	io.Writer
	Level zerolog.Level
	// contains filtered or unexported fields
}

func NewLogWriter

func NewLogWriter(level zerolog.Level) *LogWriter

func (*LogWriter) WriteLevel

func (w *LogWriter) WriteLevel(level zerolog.Level, p []byte) (n int, err error)

type O2Span

type O2Span struct {
	oteltrace.Span
}

func Trace

func Trace(ctx context.Context, name string) (context.Context, *O2Span)

func (*O2Span) End

func (s *O2Span) End()

type OpenObserveConfig

type OpenObserveConfig struct {
	Endpoint    string
	Credential  string
	ServiceName string
	Env         string
	OrgName     string
	// contains filtered or unexported fields
}

func GetConfig

func GetConfig() OpenObserveConfig

Jump to

Keyboard shortcuts

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