From 3c473ce4b84ceeaf9c26c912d5b86a4ecc77b805 Mon Sep 17 00:00:00 2001 From: patrickhuie19 Date: Thu, 4 Jan 2024 20:33:01 -0500 Subject: [PATCH] Example PR for demo --- .github/tracing/README.md | 1 - core/main.go | 5 +++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/tracing/README.md b/.github/tracing/README.md index feba31feb65..3e8d15d7628 100644 --- a/.github/tracing/README.md +++ b/.github/tracing/README.md @@ -15,7 +15,6 @@ One way to generate traces locally today is with the OCR2 basic smoke test. Core and the median plugins are instrumented with open telemetry traces, which are sent to the OTEL collector and forwarded to the Tempo backend. The grafana UI can then read the trace data from the Tempo backend. - ## CI environment Another way to generate traces is by enabling traces for PRs. This will instrument traces for `TestOCRv2Basic` in the CI run. diff --git a/core/main.go b/core/main.go index 4ff013d9c96..9a6295782f3 100644 --- a/core/main.go +++ b/core/main.go @@ -26,6 +26,7 @@ func init() { } func Main() (code int) { + randomChange() recovery.ReportPanics(func() { app := cmd.NewApp(newProductionClient()) if err := app.Run(os.Args); err != nil { @@ -50,3 +51,7 @@ func newProductionClient() *cmd.Shell { PasswordPrompter: cmd.NewPasswordPrompter(), } } + +func randomChange() error { + return nil +}