Skip to content

Commit

Permalink
Merge pull request #8 from herp-inc/fix-HttpExceptionRequest
Browse files Browse the repository at this point in the history
HttpExceptionRequestの修正をmain branchに取り込む
  • Loading branch information
ynishinaka authored Sep 27, 2023
2 parents 44d5488 + 07b5362 commit 64f1185
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions exporters/otlp/src/OpenTelemetry/Exporter/OTLP.hs
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,6 @@ otlpExporter conf = do
threadDelay (retryDelay `shiftL` backoffCount)
sendReq req (backoffCount + 1)

either print (\_ -> pure ()) eResp

case eResp of
Left err@(HttpExceptionRequest _ e) ->
if isRetryableException e
Expand All @@ -296,9 +294,7 @@ otlpExporter conf = do
sendReq req (backoffCount + 1)
else
if statusCode (responseStatus resp) >= 300
then do
print resp
pure $ Failure Nothing
then pure $ Failure Nothing
else pure Success


Expand Down

0 comments on commit 64f1185

Please sign in to comment.