Skip to content

Commit c00cffe

Browse files
SergeTupchiybryannaegele
authored andcommitted
fix(otel_batch_processor): don't divide max_queue_size by word-size
There is no need to convert `max_queue_size` to words, as it is compared with the number of objects in ETS table.
1 parent b51f206 commit c00cffe

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

apps/opentelemetry/src/otel_batch_processor.erl

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,10 +176,7 @@ init([Args=#{reg_name := RegName}]) ->
176176
exporter_config=ExporterConfig,
177177
resource = Resource,
178178
handed_off_table=undefined,
179-
max_queue_size=case SizeLimit of
180-
infinity -> infinity;
181-
_ -> SizeLimit div erlang:system_info(wordsize)
182-
end,
179+
max_queue_size=SizeLimit,
183180
exporting_timeout_ms=ExportingTimeout,
184181
check_table_size_ms=CheckTableSize,
185182
scheduled_delay_ms=ScheduledDelay,

0 commit comments

Comments
 (0)