package
0.0.0-20240506094221-05d1b2ab18e1
Repository: https://github.com/hlf513/go-pkg.git
Documentation: pkg.go.dev

# README

Example

func main() {
	openTelemetry.Register(jaeger.Jaeger(
		openTelemetry.ServiceName("go-redis"),
		openTelemetry.TraceUrl("http://localhost:14268/api/traces"),
	))
	defer openTelemetry.Shutdown(jaeger.Jaeger())

	if err := Connect(); err != nil {
		panic(err)
	}
	defer Close()

	ctx := context.Background()
	tracer := openTelemetry.Tracer()
	ctx, span := tracer.Start(ctx, "go-redis")
	defer span.End()

	cli := GetClient()
	cli.Get(ctx, "key")
}

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author

# Structs

No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author