example

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2022 License: Apache-2.0 Imports: 25 Imported by: 5

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 added in v0.8.0

func AsyncCronPrint(every time.Duration)

func InitMeter

func InitMeter()

func InitTracer

func InitTracer()

func PrintMetrics added in v0.8.0

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

func PrintTraces added in v0.8.0

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

func Register added in v0.8.0

func Register(name string) (string, error)

Types

This section is empty.

Directories

Path Synopsis
github.com
jackc/pgx Module
lib/pq Module
uptrace/bun Module
gorm.io
gorm Module

Jump to

Keyboard shortcuts

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