Documentation
¶
Index ¶
Constants ¶
View Source
const (
// ScopeName is the instrumentation scope name.
ScopeName = "github.com/scalarorg/relayers"
)
Variables ¶
View Source
var Tracer oteltrace.Tracer
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 ¶
func NewLogWriter ¶
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
Click to show internal directories.
Click to hide internal directories.