Skip to content

Commit

Permalink
Update binary size exceeded message (beam-telemetry#95)
Browse files Browse the repository at this point in the history
* Update binary size exceeds message with size to avoid guessing max mtu size needed

* Include size type in the message
  • Loading branch information
sunnybit authored May 8, 2024
1 parent 70dc6dd commit f3ae6e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/telemetry_metrics_statsd/packet.ex
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ defmodule TelemetryMetricsStatsd.Packet do

if binary_size > max_size do
# TODO: this should be probably handled in a nicer way
raise "Binary size exceeds the provided maximum packet size. You might increase it via the :mtu config."
raise "Binary size #{binary_size} bytes exceeds the provided maximum packet size #{max_size} bytes. You might increase it via the :mtu config."
end

new_packet_binaries_count = packet_binaries_count + 1
Expand Down

0 comments on commit f3ae6e4

Please sign in to comment.