I'm getting an error when using opentelemetry_experimental 0.4.0:
** (ArgumentError) errors were found at the given arguments:
* 1st argument: not an iodata term
(stdlib 5.2) re.erl:987: :re.replace([msg: "...", event_id: "..."], ~c",?\r?\n *", ~c", ", [{:return, :list}, :global, :unicode])
where the IS_STRING macro is defined as (is_list(String) orelse is_binary(String)) so the keyword list is detected as a STRING because it's a list and so the code tries to do a regex replace on it which leads to the error.
I'm getting an error when using opentelemetry_experimental 0.4.0:
it's throwing the keyword list into
:re.replace
at https://github.com/open-telemetry/opentelemetry-erlang/blob/main/apps/opentelemetry_experimental/src/otel_otlp_logs.erl#L77-L78this is because the keyword list is getting detected as a string on https://github.com/open-telemetry/opentelemetry-erlang/blob/main/apps/opentelemetry_experimental/src/otel_otlp_logs.erl#L71
where the IS_STRING macro is defined as
(is_list(String) orelse is_binary(String))
so the keyword list is detected as a STRING because it's a list and so the code tries to do a regex replace on it which leads to the error.