* Support max batch size for metrics * send batch max supported by trace and metric * Avoid extra allocations