Skip to content

Commit

Permalink
fix(otel_batch_processor): don't divide max_queue_size by word-size
Browse files Browse the repository at this point in the history
There is no need to convert `max_queue_size` to words,
as it is compared with the number of objects in ETS table.
  • Loading branch information
SergeTupchiy authored and bryannaegele committed Oct 29, 2023
1 parent b51f206 commit c00cffe
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions apps/opentelemetry/src/otel_batch_processor.erl
Original file line number Diff line number Diff line change
Expand Up @@ -176,10 +176,7 @@ init([Args=#{reg_name := RegName}]) ->
exporter_config=ExporterConfig,
resource = Resource,
handed_off_table=undefined,
max_queue_size=case SizeLimit of
infinity -> infinity;
_ -> SizeLimit div erlang:system_info(wordsize)
end,
max_queue_size=SizeLimit,
exporting_timeout_ms=ExportingTimeout,
check_table_size_ms=CheckTableSize,
scheduled_delay_ms=ScheduledDelay,
Expand Down

0 comments on commit c00cffe

Please sign in to comment.