Skip to content

Commit

Permalink
don't log failure from backoff (#1588)
Browse files Browse the repository at this point in the history
  • Loading branch information
plantfansam committed Feb 1, 2024
1 parent 4d94aa4 commit 975f4b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exporter/otlp/lib/opentelemetry/exporter/otlp/exporter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ def measure_request_duration
end

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

sleep_interval = nil
Expand Down

0 comments on commit 975f4b3

Please sign in to comment.