From 866d2dec10498a0dc0dbf9caea7e76078f38a10d Mon Sep 17 00:00:00 2001 From: Marcel Horlings Date: Tue, 28 Apr 2026 09:36:47 +0200 Subject: [PATCH] Inspect value for response body In some cases we don't get the response_body in honeycomb, this might be because the value isn't properly formatted. In any case adding this shouldn't cause issues even if it doesn't help, so we might as well check if this improves behaviour. --- .tool-versions | 4 ++-- lib/http_ex/response.ex | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.tool-versions b/.tool-versions index c133968..77ad9f6 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1,2 +1,2 @@ -elixir 1.18.3-otp-27 -erlang 27.3.1 +elixir 1.19.5-otp-28 +erlang 28.4.1 diff --git a/lib/http_ex/response.ex b/lib/http_ex/response.ex index 1012e2b..0dc03f3 100644 --- a/lib/http_ex/response.ex +++ b/lib/http_ex/response.ex @@ -55,7 +55,7 @@ defmodule HTTPEx.Response do Shared.trace_attrs([ {"error", error?}, {"http.error", reason}, - {"http.response_body", response.body}, + {"http.response_body", Shared.inspect_value(response.body)}, {"http.response_headers", inspect(response.headers)}, {"http.status_code", response.status}, {"http.retries", response.retries}