Skip to content

Commit d679848

Browse files
khrmtekton-robot
authored andcommitted
test: Drop OpenCensus based metric exporter initialisation
The knativetest.Flags.EmitMetrics flag is no longer supported after the migration to OpenTelemetry. This commit removes the conditional initialisation to align with the new metrics system.
1 parent c8d3f4b commit d679848

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

test/util.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,6 @@ func initializeLogsAndMetrics(t *testing.T) {
146146
flag.Parse()
147147
flag.Set("alsologtostderr", "true")
148148
logging.InitializeLogger()
149-
150-
// if knativetest.Flags.EmitMetrics {
151-
logging.InitializeMetricExporter(t.Name())
152-
//}
153149
})
154150
}
155151

0 commit comments

Comments
 (0)