From e5f4cff54eba382de3bf8eeebf25bd418dafd406 Mon Sep 17 00:00:00 2001 From: John Dietz Date: Sun, 22 Oct 2023 13:50:41 -0400 Subject: [PATCH] remove telemetry shim --- internal/telemetryShim/metrics.go | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 internal/telemetryShim/metrics.go diff --git a/internal/telemetryShim/metrics.go b/internal/telemetryShim/metrics.go deleted file mode 100644 index 4437e1179..000000000 --- a/internal/telemetryShim/metrics.go +++ /dev/null @@ -1,20 +0,0 @@ -/* -Copyright (C) 2021-2023, Kubefirst - -This program is licensed under MIT. -See the LICENSE file for more details. -*/ -package telemetryShim - -import ( - "github.com/kubefirst/runtime/pkg/segment" - "github.com/rs/zerolog/log" -) - -// Transmit sends a metric via Segment -func Transmit(useTelemetry bool, segmentClient *segment.SegmentClient, metricName string, errorMessage string) { - segmentMsg := segmentClient.SendCountMetric(metricName, errorMessage) - if segmentMsg != "" { - log.Info().Msg(segmentMsg) - } -}