INNER CODE UNIT · Go

main

grafana/tanka · cmd/tk/main.go:24

func main() {
	rootCmd := &cli.Command{
		Use:     "tk",
		Short:   "tanka <3 jsonnet",
		Version: tanka.CurrentVersion,
	}

	ctx := context.Background()
	res := resource.NewWithAttributes(
		semconv.SchemaURL,
		semconv.ServiceName("tanka"),
	)
	shutdownOtel, err := telemetry.Setup(ctx, res)
	if err != nil {
		fmt.Fprintln(os.Stderr, "Error:", err)
		os.Exit(1)
	}
	ctx = otel.GetTextMapPropagator().Extract(ctx, telemetry.LoadEnvironmentCarrier())

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…