Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: ignore doJsonPut failure result #863

Merged

Conversation

ryota0624
Copy link
Contributor

i fixed httpClient.doJsonPut result Try's Failure case ignored.
threw exception is catched by caller method and Failure case is output to log by this fix.

@@ -12,6 +12,8 @@ import kamon.util.{ EnvironmentTags, Filter }
import org.slf4j.LoggerFactory
import play.api.libs.json.{ JsObject, Json }

import scala.util.{ Failure, Success }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove unnecessary Success import

Copy link
Contributor

@SimunKaracic SimunKaracic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! 👍

@ivantopo ivantopo merged commit 6122fa8 into kamon-io:master Oct 1, 2020
@ivantopo
Copy link
Contributor

ivantopo commented Oct 1, 2020

Thanks a lot for the fix @ryota0624!

@ryota0624 ryota0624 deleted the fix/datadog_span_reporter/do_json_put branch October 1, 2020 13:27
perenecabuto pushed a commit to globocom/Kamon that referenced this pull request Feb 12, 2021
* fix: ignore doJsonPut failure result
* remove unnecessary import
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants