Skip to content

Commit 975f4b3

Browse files
authored
don't log failure from backoff (#1588)
1 parent 4d94aa4 commit 975f4b3

File tree

1 file changed

+1
-1
lines changed
  • exporter/otlp/lib/opentelemetry/exporter/otlp

1 file changed

+1
-1
lines changed

exporter/otlp/lib/opentelemetry/exporter/otlp/exporter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ def measure_request_duration
245245
end
246246

247247
def backoff?(retry_count:, reason:, retry_after: nil) # rubocop:disable Metrics/CyclomaticComplexity, Metrics/MethodLength, Metrics/PerceivedComplexity
248-
log_request_failure(reason)
248+
@metrics_reporter.add_to_counter('otel.otlp_exporter.failure', labels: { 'reason' => reason })
249249
return false if retry_count > RETRY_COUNT
250250

251251
sleep_interval = nil

0 commit comments

Comments
 (0)