example

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2022 License: Apache-2.0 Imports: 25 Imported by: 0

README

Usage

  • start docker compose.
  • run main function for special example.
  • access http://localhost:16686 to see span on jaeger.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MySQLDSN      = "otsql_user:otsql_password@/otsql_db?parseTime=true"
	PostgreSQLDSN = "user=otsql_user password=otsql_password dbname=otsql_db host=localhost port=5432 sslmode=disable TimeZone=Asia/Shanghai"
)

Functions

func AsyncCronPrint

func AsyncCronPrint(every time.Duration)

func InitMeter

func InitMeter()

func InitTracer

func InitTracer()

func PrintMetrics

func PrintMetrics(ctx context.Context, httpClient *http.Client)

func PrintTraces

func PrintTraces(ctx context.Context, httpClient *http.Client)

func Register

func Register(name string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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