Skip to content

Commit 15dfdcf

Browse files
committed
fix tests
1 parent 568bd93 commit 15dfdcf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

collector/receiver/telemetryapireceiver/receiver.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ func createReportLogRecord(scopeLog *plog.ScopeLogs, record map[string]interface
288288

289289
// optionally gather information about cold start time
290290
var initDurationMs float64
291-
if initDurationMsVal, exists := metrics[metricInitDurationMs]; exists {
291+
if initDurationMsVal, exists := metrics[string(telemetryapi.MetricInitDurationMs)]; exists {
292292
if val, ok := initDurationMsVal.(float64); ok {
293293
initDurationMs = val
294294
}

0 commit comments

Comments
 (0)