Skip to content

Commit 5bd1302

Browse files
committed
lint: remove unused methods
1 parent 0e0533f commit 5bd1302

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

internal/beatcmd/beat.go

-10
Original file line numberDiff line numberDiff line change
@@ -559,16 +559,6 @@ func getScalarInt64(data metricdata.Aggregation) (int64, bool) {
559559
return 0, false
560560
}
561561

562-
func addAPMServerMetrics(v monitoring.Visitor, sm metricdata.ScopeMetrics) {
563-
for _, m := range sm.Metrics {
564-
if suffix, ok := strings.CutPrefix(m.Name, "apm-server."); ok {
565-
if value, ok := getScalarInt64(m.Data); ok {
566-
monitoring.ReportInt(v, suffix, value)
567-
}
568-
}
569-
}
570-
}
571-
572562
// Adapt go-docappender's OTel metrics to beats stack monitoring metrics,
573563
// with a mixture of libbeat-specific and apm-server specific metric names.
574564
func addDocappenderLibbeatOutputMetrics(ctx context.Context, v monitoring.Visitor, sm metricdata.ScopeMetrics) {

0 commit comments

Comments
 (0)