Skip to content

Commit a27155f

Browse files
committed
Fix rebase issues
1 parent fbff122 commit a27155f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

obsreport/obsreport_exporter.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,12 @@ func (eor *Exporter) EndMetricsOp(ctx context.Context, numMetricPoints int, err
8383
endSpan(ctx, err, numSent, numFailedToSend, obsmetrics.SentMetricPointsKey, obsmetrics.FailedToSendMetricPointsKey)
8484
}
8585

86-
// StartLogsExportOp is called at the start of an Export operation.
86+
// RecordMetricsEnqueueFailure records number of metric points that failed to be added to the sending queue.
87+
func (eor *Exporter) RecordMetricsEnqueueFailure(ctx context.Context, numMetricPoints int) {
88+
_ = stats.RecordWithTags(ctx, eor.mutators, obsmetrics.ExporterFailedToEnqueueMetricPoints.M(int64(numMetricPoints)))
89+
}
90+
91+
// StartLogsOp is called at the start of an Export operation.
8792
// The returned context should be used in other calls to the Exporter functions
8893
// dealing with the same export operation.
8994
func (eor *Exporter) StartLogsOp(ctx context.Context) context.Context {

0 commit comments

Comments
 (0)